Load and share

Every successful trained pipeline saves the best model in the result folder as photon_best_model.photon. To collaborate with other people share your trained model saved in this file. If you want to reload it have a look at the following example script:

from photonai.base import Hyperpipe
from sklearn.datasets import load_breast_cancer

X, _ = load_breast_cancer(True)

my_pipe = Hyperpipe.load_optimum_pipe("full_path/to/photon_best_model.photon")
predictions = my_pipe.predict(X)

Make sure the PHOTONAI versions of training and reloading match.