-
Clone the repository.
git clone https://github.com/Comtensor/comtensor.git cd comtensor
-
Install venv
apt install python3.10-venv python3 -m venv my-env . my-env/bin/activate
-
Install dependancies
python3 -m pip install -e . python3 -m pip install -r requirements.txt
-
Make sub-directory in
crossvals
directory and name it with subnet name.ex.
crossvals/healthcare
Add all your files in this directory.
-
Declare the class inheriting from
CommitBasedCrossval
class orSynapseBasedCrossval
class.ex.
import bittensor as bt from constants import BASE_DIR from base.commit_based_crossval import CommitBasedCrossval class HealthcareCrosscal(CommitBasedCrossval): ...
-
Then customize this class with your own functions and implementing abstruct functions.