Create Experiment Recorder
import markov
# Get the existing project by name or id
my_project = markov.Project.get_by_name(name="My first project")
# or my_project = markov.Project.get_by_id(project_id="PROJECT_ID")
# Define the model here
# hyper_parameters = {"learning_rate":0.1, "n_input":100, ...}
# model = torch.nn.Sequential()
# Alternatively, you can use a project's create_experiment_recorder method.
# In this case, the project_id argument will be inferred.
recorder = my_project.create_experiment_recorder(
name = "Test_Experiment_Tracking_With_MarkovML",
notes = "This is a test experiment",
hyper_parameters ={
"learning_rate": 0.1,
"n_input": 100,
"n_hidden": 50,
"n_output": 10
},
# Optional Key/Value pair to store values for custom variables with MarkovML
# for this experiment. For example
# meta_data = {
# "exp_code": "AGI",
# "config":{
# "feature_store": 1.2,
# "lexicon":"/path/secret_store/table.id"
# }
# }
meta_data={"KEY": "VALUE_PAIR"}
)
# Register the experiment recorder with the MarkovML backend. Only a registered
# experiment recorder can be used to add records.
recorder.register()Last updated