Skip to content

Commit

Permalink
vanderpol
Browse files Browse the repository at this point in the history
  • Loading branch information
agosztolai committed Nov 27, 2023
1 parent 3bef285 commit 414e5ca
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 10 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 9 additions & 10 deletions examples/toy_examples/vanderpol.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}
],
"source": [
"data = MARBLE.construct_dataset(pos, features=vel, k=20, stop_crit=0.03)"
"data = MARBLE.construct_dataset(pos, features=vel, stop_crit=0.03)"
]
},
{
Expand Down Expand Up @@ -283,14 +283,13 @@
],
"source": [
"params = {'epochs': 50, #optimisation epochs\n",
" 'order': 2, #order of derivatives\n",
" 'hidden_channels': 32, #number of internal dimensions in MLP\n",
" 'out_channels': 5,\n",
" 'inner_product_features': True,\n",
" }\n",
"\n",
"model = MARBLE.net(data, params=params)\n",
"model.run_training(data, outdir='model_large')"
"model.fit(data, outdir='model_large')"
]
},
{
Expand Down Expand Up @@ -375,7 +374,7 @@
}
],
"source": [
"data = model.evaluate(data)\n",
"data = model.transform(data)\n",
"data = MARBLE.distribution_distances(data)\n",
"data = MARBLE.embed_in_2D(data)\n",
"\n",
Expand Down Expand Up @@ -516,7 +515,7 @@
"\n",
"data = MARBLE.construct_dataset(pos, features=vel, k=20, stop_crit=0.03)\n",
"model = MARBLE.net(data, params=params)\n",
"model.run_training(data, outdir='model_zoom')"
"model.fit(data, outdir='model_zoom')"
]
},
{
Expand Down Expand Up @@ -596,7 +595,7 @@
}
],
"source": [
"data = model.evaluate(data)\n",
"data = model.transform(data)\n",
"data = MARBLE.distribution_distances(data)\n",
"data = MARBLE.embed_in_2D(data)\n",
"\n",
Expand Down Expand Up @@ -764,7 +763,7 @@
"\n",
"params['inner_product_features'] = True\n",
"model = MARBLE.net(data, params=params)\n",
"model.run_training(data, outdir='model_noise_inner')"
"model.fit(data, outdir='model_noise_inner')"
]
},
{
Expand Down Expand Up @@ -844,7 +843,7 @@
}
],
"source": [
"data = model.evaluate(data)\n",
"data = model.transform(data)\n",
"data = MARBLE.distribution_distances(data)\n",
"data = MARBLE.embed_in_2D(data)\n",
"\n",
Expand Down Expand Up @@ -969,7 +968,7 @@
"source": [
"params['inner_product_features'] = False\n",
"model = MARBLE.net(data, params=params)\n",
"model.run_training(data, outdir='model_noise_no_inner')"
"model.fit(data, outdir='model_noise_no_inner')"
]
},
{
Expand Down Expand Up @@ -1048,7 +1047,7 @@
}
],
"source": [
"data = model.evaluate(data)\n",
"data = model.transform(data)\n",
"data = MARBLE.distribution_distances(data)\n",
"data = MARBLE.embed_in_2D(data)\n",
"\n",
Expand Down

0 comments on commit 414e5ca

Please sign in to comment.