Mooc Scikit-Learn Model
This repository is used to initialized learners environment by downloading notebooks and datasets from https://github.com/INRIA/scikit-learn-mooc. This is used to et a reset url and to filter out solution notebooks.
To manually update (using javascript console):
- Open a javascript console (F12 o Ctrl + Shift + I)
- Copy and paste the following script
- Copy the json output
- Paste it inside
notebooks.json
const baseUrl = "https://github.com/INRIA/scikit-learn-mooc/raw/master/";
const apiUrl = "https://api.github.com/repos/INRIA/scikit-learn-mooc/contents";
let datasets, notebooks, wrapups, figures;
fetch(`${apiUrl}/datasets`)
.then(function(response_datasets) {
return response_datasets.json()
}).then(function(data_datasets) {
datasets = data_datasets.map(item => item.path)
return fetch(`${apiUrl}/figures`)
}).then(function(response_figures) {
return response_figures.json()
}).then(function(data_figures) {
figures = data_figures.map(item => item.path)
return fetch(`${apiUrl}/notebooks`)
}).then(function(response_notebooks) {
return response_notebooks.json()
}).then(function(data_notebooks) {
// Filter out solutions
notebooks = data_notebooks.map(item => item.path).filter(item => item.indexOf('sol') === -1)
return fetch(`${apiUrl}/evaluation`)
}).then(function(response_wrapups) {
return response_wrapups.json()
}).then(function(data_wrapups) {
wrapups = data_wrapups.map(item => item.path.replace('.md', '.ipynb'))
console.log(JSON.stringify({baseUrl, notebooks, datasets, wrapups, figures}, null, 2))
});