from sklearn.ensemble import RandomForestRegressor as randomforest
from sklearn.svm import SVR as svm
from sklearn.pls import PLSRegression as pls

from .neuralnetwork import neuralnetwork

__all__ = ['randomforest', 'svm', 'pls', 'neuralnetwork']

from sklearn.ensemble import RandomForestRegressor
from sklearn.svm import SVR
from sklearn.pls import PLSRegression

from .neuralnetwork import neuralnetwork

__all__ = ['randomforest', 'svm', 'pls', 'neuralnetwork']

class randomforest(RandomForestRegressor):
    pass

class svm(SVR):
    pass

class svm(PLSRegression):
    pass

Make models inherit from sklearn
Make models inherit from sklearn

- from sklearn.ensemble import RandomForestRegressor as randomforest
+ from sklearn.ensemble import RandomForestRegressor
- from sklearn.svm import SVR as svm
+ from sklearn.svm import SVR
- from sklearn.pls import PLSRegression as pls
+ from sklearn.pls import PLSRegression
  
  from .neuralnetwork import neuralnetwork
  
  __all__ = ['randomforest', 'svm', 'pls', 'neuralnetwork']
  
+ class randomforest(RandomForestRegressor):
+     pass
+ 
+ class svm(SVR):
+     pass
+ 
+ class svm(PLSRegression):
+     pass
+ 
Make models inherit from sklearn
## Code Before:
from sklearn.ensemble import RandomForestRegressor as randomforest
from sklearn.svm import SVR as svm
from sklearn.pls import PLSRegression as pls

from .neuralnetwork import neuralnetwork

__all__ = ['randomforest', 'svm', 'pls', 'neuralnetwork']

## Instruction:
Make models inherit from sklearn
## Code After:
from sklearn.ensemble import RandomForestRegressor
from sklearn.svm import SVR
from sklearn.pls import PLSRegression

from .neuralnetwork import neuralnetwork

__all__ = ['randomforest', 'svm', 'pls', 'neuralnetwork']

class randomforest(RandomForestRegressor):
    pass

class svm(SVR):
    pass

class svm(PLSRegression):
    pass
