ML Project Code
Setup
Make sure to run this first to avoid dependency issues:
pip install -e MLPrimitives/
pip install -e Orion/
pip install -e mSSA/
pip install -r requirements.txt
Adding a method
Suppose your method is called MyMethod
and will be implemented in the file my_method.py
.
- Go to
Orion/orion/primitives
. Create the filemy_method.py
. Taking inspiration fromorbit.py
implement afit
andpredict
method of theMyMethod
class. - Go to
Orion/orion/primitives/json
. Create the fileorion.primitives.my_method.MyMethod.json
. - Copy/Paste its content from
orion.primitives.orbit.OrbitTAD.json
. Make sure the rename the references toorbit
and toOrbitTAD
bymy_method
andMyMethod
and to modify parameters. - Go to
Orion/orion/pipelines/verified/
. Create amy_method
folder, with amy_method.json
file. - Again, take inspiration from the
Orion/orion/pipelines/verified/orbit/orbit.json
. Make sure to again update the names and parameters.
Testing a method
- Open
essai.py
, and replaceorbit
bymy_method
. - Put in the datasets you want.
- Run.