pythonimporterrorfuzzy-searchviewmodelfactory

ImportError: cannot import name 'ModelFactory' from 'frlearn.base'


I get an error (ImportError: cannot import name 'ModelFactory' from 'frlearn.base') when running the following code:

from frlearn.base import ModelFactory

Solution

  • I belive you are using frlearn from this github repo. You just have to clone this repo using the following command

    !git clone https://github.com/oulenz/fuzzy-rough-learn.git
    

    And then move to the cloned directory using cd <clonned directory path> In your case that may be

    cd fuzzy-rough-learn