ModelImport

class mastml.legos.model_finder.ModelImport(model_path)[source]

Bases: object

Class used to import pickled models from previous machine learning fits

Args:

model_path (str): string designating the path to load the saved .pkl model file

Methods:

fit: Does nothing, present for compatibility purposes

Args:

X: Nonetype

y: Nonetype

groups: Nonetype

predict: Provides predicted model values based on X features

Args:

X: (numpy array), array of X features

Returns:

(numpy array), prediction array using imported model

Methods Summary

fit([X, y, groups]) Only here for compatibility
predict(X)

Methods Documentation

fit(X=None, y=None, groups=None)[source]

Only here for compatibility

predict(X)[source]