diff --git a/Project_old.toml b/Project_old.toml deleted file mode 100644 index 3eb2e717..00000000 --- a/Project_old.toml +++ /dev/null @@ -1,2 +0,0 @@ -[deps] -Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e" diff --git a/README.md b/README.md index becb4d7d..cb91c1e7 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # DataScienceTutorials.jl -This repository contains the source code for a [set of tutorials](https://juliaai.github.io/DataScienceTutorials.jl/) introducing the use of Julia and Julia packages such as MLJ (but not only) to do "data science" in Julia. +This repository contains the source code for a [set of tutorials](https://juliaai.github.io/DataScienceTutorials.jl/) introducing the use of Julia and Julia packages such as MLJ, among others, to do "data science" in Julia. -## For readers +## 📖 For readers You can read the tutorials [online](https://juliaai.github.io/DataScienceTutorials.jl/). -You can find a runnable script for each tutorial at the top of each tutorial page along with a `Project.toml` and a `Manifest.toml` you can use to re-create the exact environment that was used to run the tutorial. +You can find a runnable script for each tutorial linked at the top of each tutorial page along with a `Project.toml` and a `Manifest.toml` you can use to re-create the exact environment that was used to run the tutorial. To do so, save both files in an appropriate folder, start Julia, `cd` to the folder and @@ -18,106 +18,129 @@ Pkg.instantiate() **Note**: you are strongly encouraged to [open issues](https://github.com/juliaai/DataScienceTutorials.jl/issues/new) on this repository indicating points that are unclear or could be better explained, help us have great tutorials! -## For developers +## 👩‍💻 For developers The rest of these instructions assume that you've cloned the package and have `cd` to it. -### Structure +### 📂 Structure +The following are the folders relevant to pages on the website: +``` +├── _literate +│ ├── data # has "Data Basics" tutorials +│ ├── getting-started # has "Getting Started" tutorials +│ ├── isl # has "Introduction to Statistical Learning" tutorials +│ ├── end-to-end # has "End-to-End" tutorials +│ └── advanced # has "Advanced" tutorials +├── data # This and the four folders below import content from "_literate" to the website +├── getting-started +├── isl +├── end-to-end +├── advanced +├── info # has markdown files corresponding to info pages +├── index.md # has markdown for the landing page +├── search.md # has markdown for the search page +├── routes.json # has all the navigation bar data +├── collapse-script.jl # script that adds collapsible sections to tutorials +├── deploy.jl # deployment script +└── Project.toml # environment for dev operations, eg. deploy.jl +``` +To understand the rest of the structure which could help you change styles with CSS or add interaction with JavaScript read the relevant page on [Franklin's documentation](https://franklinjl.org/workflow/). -All tutorials correspond to a Literate script that's in `_literate/`. +### 👨🏻‍🔧 Modifying an existing tutorial -### Fixing an existing tutorial +* Find the corresponding Julia script in `_literate` and fix it in a PR. +* Ensure it works and renders properly as explained in [this section](#👀-visualise-modifications-locally). -Find the corresponding script, fix it in a PR. -### Add a new tutorial +### ✨ Add a new tutorial -* Duplicate the folder `EX-wine`. -* Change its name: - * `EX-somename` for an "end-to-end" tutorial `somename` - * `A-somename` for a "getting started" tutorial `somename` - * `D0-somename` for a "data" tutorial `somename` - * `ISL-lab-x` for an "Introduction to Statistical Learning" tutorial +* Go to the appropriate folder inside `_literate` depending on the category of the tutorial as described above +* Duplicate one of the tutorials as a starting point. * Remove `Manifest.toml` and `Project.toml` -* Activate that folder and add the packages that you'll need (MLJ, ...) +* Create and activate an environment in that folder and add the packages that you'll need (MLJ, ...) * Write your tutorial following the blueprint +* Run `julia collapse-script.jl` to add necessary Franklin syntax to your tutorial to make sections in it collapsible like other tutorials -**Note**: your tutorial **must** "just work" otherwise it will be ignored, in other words, we should be able to just copy the folder containing your `.jl` and `.toml` files, and run it without having to do anything special. - -Once all that's done, the remaining things to do are to create the HTML page and a link in the appropriate location. Let's assume you wanted to add an E2E tutorial "Dinosaurs" then in the previous step you'd have `EX-dinosaurs` and you would +> [!IMPORTANT] +> Your tutorial **must** "just work" otherwise it will be ignored, in other words, any Julia user should be able to just copy the folder containing your `.jl` and `.toml` files, and run it without having to do anything special. -* create a file `dinosaurs.md` in `end-to-end/` by duplicating the `end-to-end/wine.md` and changing the reference in it to `\tutorial{EX-dinosaurs}` -* add a link pointing to that tutorial in `_libs/nav/head.js` following the template so your tutorial shows in the navigation bar -* lastly, to make sections in your tutorial collapsible like other tutorials run the `collapse-script.jl` file via `julia collapse-script.jl` +Once all that's done, the remaining things to do are to create the HTML page and a link in the appropriate location. Let's assume you wanted to add an E2E tutorial "Dinosaurs" then this implies that `_literate/end-to-end/dinosaurs.jl` exists and you would: +* Create a file `dinosaurs.md` in the top-level folder `end-to-end/` by duplicating the `end-to-end/wine.md` and changing the reference in it to `\tutorial{end-to-end/dinosaurs}` +* Add a link pointing to that tutorial in `routing.json` following the template so your tutorial shows in the navigation bar +* Ensure your tutorials renders correctly as explained in the [next section](#👀-visualise-modifications-locally). -### Publishing updates +> [!NOTE] +> For plots, we do prefer that you use `Plots.jl` with the default backend. In general, try to avoid having Python as a dependency in your tutorial. -**Assumptions**: +
+ For more information about adding plots +
+Follow the pattern in existing tutorials; finish a code block defining a plot with: -* you have a PR with changes, someone has reviewed them and they got merged into the main branch +```julia +savefig(joinpath(@OUTPUT, "MyTutorial-Fig1.svg")) # hide -* Be sure the version of Julia declared near the top of `index.md` - matches the version used to generate the web-site (which should - match the version declared in each tutorial's Manifest.toml file) +# \figalt{the alt here}{MyTutorial-Fig1.svg} +``` +Here "the alt here" is the text that appears if there is problem rendering the +figure. Please do not use anything else than SVG; please also stick to +this path and start the name of the file with the name of the tutorial +(to help keep files organised). -**Once the changes are in the main branch**: +Do not forget to add the `# hide` which will ensure the line is not displayed on the website, notebook, or script. +
-* run `cd("path/to/DataScienceTutorials"); using Franklin` to launch Franklin -* run `serve(single=true, verb=true)` to ensure no issues generating the relevant html pages with code block evaluations, and then run `serve()` (after restarting) to serve the pages live on a local browser for viewing -* run `include("deploy.jl")` to re-generate the LUNR index and push the changes to GitHub. +### 👀 Visualise modifications locally -The second step requires you have `lunr` and `cheerio` installed, if not: +```julia +using Pkg +Pkg.activate(".") +Pkg.instantiate() -``` -using NodeJS -run(`sudo $(npm_cmd()) i lunr cheerio`) +using Franklin +serve() ``` -This should take ≤ 15 seconds to complete. +This makes Franklin to re-evaluate some of the code based on the changes which may take some time, progress is indicated in the REPL. Once it finishes it will open the browser to render the website after the changes. ---- +**Note**: +- If you decide to change some of the code while `serve()` is running, this is fine, Franklin will detect it and trigger an update of the relevant web pages (after evaluating the new code). -# Old instructions (still valid) +- This may generate some files under `__site` don't push them in your PR as they will be pushed upon deployment. -### Visualise modifications locally +- Avoid modifying the literate file, killing the Julia session, then calling `serve()` that sequence can cause weird issues where Julia will complain about the age of the world... -```julia -cd("path/to/DataScienceTutorials") -using Franklin -serve() -``` -If you have changed the *code* of some of the literate scripts, Franklin will need to re-evaluate some of the code which may take some time, progress is indicated in the REPL. +### 🚀 Publishing updates -If you decide to change some of the code while `serve()` is running, this is fine, Franklin will detect it and trigger an update of the relevant web pages (after evaluating the new code). +**Assumptions**: -**Notes**: -- avoid modifying the literate file, killing the Julia session, then calling `serve()` that sequence can cause weird issues where Julia will complain about the age of the world... -- the `serve()` command above activates the environment. +* you have a PR with changes, someone has reviewed them and they got merged into the master branch -### Plots +* Be sure the version of Julia declared [here](https://juliaai.github.io/DataScienceTutorials.jl/how-to-run-code/) + matches the version used to generate the web-site (which should + match the version declared in each tutorial's Manifest.toml file) -For the moment, plots are done with `PyPlot.jl` (though you're not restricted to use it). -It's best not to use `Plots.jl` because the loading time would risk making full updates of the webpage annoyingly slow. -In order to display a plot, finish a code block defining a plot with +**Once the changes are in the master branch:** +* Run `cd("path/to/DataScienceTutorials"); using Franklin` to launch Franklin +* In case you don't have `lunr` and `cheerio` installed already, also do: +```julia +using NodeJS +run(`sudo $(npm_cmd()) i lunr cheerio`) ``` -savefig(joinpath(@OUTPUT, "MyTutorial-Fig1.svg")) # hide +* Run `serve(single=true, verb=true)` to ensure no issues generating the relevant html pages with code block evaluations +* Run `serve()` (after restarting) to serve the pages live on a local browser for viewing +* run `include("deploy.jl")` which re-generates the LUNR index and automatically pushes the changes to GitHub. -# \figalt{the alt here}{MyTutorial-Fig1.svg} -``` -Here "the alt here" is the text that appears if there is problem rendering the -figure. Please do not use anything else than SVG; please also stick to -this path and start the name of the file with the name of the tutorial -(to help keep files organised). +This should take ≤ 15 seconds to complete. -Do not forget to add the `# hide` which will ensure the line is not displayed on the website, notebook, or script. +### 🕵🏽 Troubleshooting -### Troubleshooting #### Stale files @@ -131,7 +154,7 @@ save the file, wait for Franklin to complete its update and then remove it (othe If you get an "age of the world" error, the `reeval` steps above usually works as well. -If you want to force the reevaluation of everything once, restart a Julia session and use +If you want to force the reevaluation of all tutorials at once, restart a Julia session and use ```julia serve(; eval_all=true) @@ -139,9 +162,9 @@ serve(; eval_all=true) note that this will take a while. -#### Merge conflicts +#### Merge conflicts or Missing Styles -If you get merge conflicts, do +If you get merge conflicts or have new website styles that seem to be missing after `serve()`, do ```julia cleanpull() diff --git a/_layout/foot.html b/_layout/foot.html index 43d0d4d7..ba9d80f8 100644 --- a/_layout/foot.html +++ b/_layout/foot.html @@ -5,7 +5,7 @@ - + diff --git a/_libs/landing/landing.js b/_libs/landing/landing.js index 7c6dd6ec..55a7e496 100644 --- a/_libs/landing/landing.js +++ b/_libs/landing/landing.js @@ -51,6 +51,6 @@ document.addEventListener("DOMContentLoaded", function() { // Add click event listener to the div element element.addEventListener('click', function(event) { // Change the location to "/how-to-run-code" - window.location.href = (hosted) ? origin + "/DataScienceTutorials.jl" + "/how-to-run-code" : "/how-to-run-code"; + window.location.href = (hosted) ? origin + "/DataScienceTutorials.jl" + "/info/how-to-run-code" : "/info/how-to-run-code"; }); }); diff --git a/_libs/nav/head.js b/_libs/nav/head.js index cc3d9326..990ba2b6 100644 --- a/_libs/nav/head.js +++ b/_libs/nav/head.js @@ -1,80 +1,4 @@ - -const navItems = [ - { name: 'Home', href: '/', sections: [], sectionItemWidth: '', id: 'home' }, - { - name: 'Data Basics', // Category name to be shown in navigation bar - id: 'data', // id to be manipulated with js - href: '/data', // in case it should link anywhere - sections: [ // list items to be shown in its dropdown and where they link to - { name: 'Loading Data', href: '/data/loading/' }, - { name: 'Data Frames', href: '/data/dataframe/' }, - { name: 'Categorical Arrays', href: '/data/categorical/' }, - { name: 'Scientific Type', href: '/data/scitype/' }, - { name: 'Data processing', href: '/data/processing/' }, - ], - sectionItemWidth: 'short-item' - }, - { - name: 'Getting Started', - id: 'getting-started', - href: '/getting-started', - sections: [ - { name: 'Choosing a model', href: '/getting-started/choosing-a-model/' }, - { name: 'Fit, predict, transform', href: '/getting-started/fit-and-predict/' }, - { name: 'Model tuning', href: '/getting-started/model-tuning/' }, - { name: 'Ensembles', href: '/getting-started/ensembles/' }, - { name: 'Ensembles (2)', href: '/getting-started/ensembles-2/' }, - { name: 'Composing models', href: '/getting-started/composing-models/' }, - { name: 'Stacking', href: '/getting-started/stacking/' }, - ], - sectionItemWidth: 'medium-item' - }, - { - name: 'Intro to Stats Learning', - id: 'stats-learning', - href: '/isl', - sections: [ - { name: 'Lab 2', href: '/isl/lab-2/' }, - { name: 'Lab 3', href: '/isl/lab-3/' }, - { name: 'Lab 4', href: '/isl/lab-4/' }, - { name: 'Lab 5', href: '/isl/lab-5/' }, - { name: 'Lab 6b', href: '/isl/lab-6b/' }, - { name: 'Lab 8', href: '/isl/lab-8/' }, - { name: 'Lab 9', href: '/isl/lab-9/' }, - { name: 'Lab 10', href: '/isl/lab-10/' }, - ], - sectionItemWidth: 'long-item' - }, - - { - name: 'End to End', - id: 'end-to-end', - href: '/end-to-end', - sections: [ - { name: 'Telco Churn', href: '/end-to-end/telco/' }, - { name: 'AMES', href: '/end-to-end/AMES/' }, - { name: 'Wine', href: '/end-to-end/wine/' }, - { name: 'Crabs (XGB)', href: '/end-to-end/crabs-xgb/' }, - { name: 'Horse', href: '/end-to-end/horse/' }, - { name: 'King County Houses', href: '/end-to-end/HouseKingCounty/' }, - { name: 'Airfoil', href: '/end-to-end/airfoil' }, - { name: 'Boston (lgbm)', href: '/end-to-end/boston-lgbm' }, - { name: 'Using GLM.jl', href: '/end-to-end/glm/' }, - { name: 'Power Generation', href: '/end-to-end/powergen/' }, - { name: 'Boston (Flux)', href: '/end-to-end/boston-flux' }, - { name: 'Breast Cancer', href: '/end-to-end/breastcancer' }, - { name: 'Credit Fraud', href: '/end-to-end/creditfraud' }, - ], - sectionItemWidth: 'long-item' - }, - { - name: 'Advanced', - id: 'advanced', - href: '#!', - sections: [{ name: 'Ensembles (3)', href: '/advanced/ensembles-3' }], - sectionItemWidth: 'medium-item' - }, -]; +import navItems from '../../routes.json' assert {type: 'json'}; // first get info on whether hosted or not const origin = window.location.origin; @@ -130,7 +54,7 @@ navItems.forEach((item) => { // add a final li as searchform let formAction = (hosted) ? origin + "/DataScienceTutorials.jl" + "/search/index.html" : "/search/index.html"; -searchForm = ` +let searchForm = `
  • @@ -192,7 +116,7 @@ generateSidebar(navItems); // Flatten the nav items so we can easily iterate through them function flattenNavItems(items) { return items.reduce((acc, item) => { - const mainHrefs = ["/data", "/end-to-end", "/getting-started", "/isl", "#!"]; + const mainHrefs = ["/info/data", "/info/end-to-end", "/info/getting-started", "/info/isl", "#!"]; if (!mainHrefs.includes(item.href)) { acc.push(item); } diff --git a/_literate/ADV-ensembles-3/Manifest.toml b/_literate/advanced/ensembles-3/Manifest.toml similarity index 100% rename from _literate/ADV-ensembles-3/Manifest.toml rename to _literate/advanced/ensembles-3/Manifest.toml diff --git a/_literate/ADV-ensembles-3/Project.toml b/_literate/advanced/ensembles-3/Project.toml similarity index 100% rename from _literate/ADV-ensembles-3/Project.toml rename to _literate/advanced/ensembles-3/Project.toml diff --git a/_literate/ADV-ensembles-3/tutorial.jl b/_literate/advanced/ensembles-3/tutorial.jl similarity index 100% rename from _literate/ADV-ensembles-3/tutorial.jl rename to _literate/advanced/ensembles-3/tutorial.jl diff --git a/_literate/D0-categorical/Manifest.toml b/_literate/data/categorical/Manifest.toml similarity index 100% rename from _literate/D0-categorical/Manifest.toml rename to _literate/data/categorical/Manifest.toml diff --git a/_literate/D0-categorical/Project.toml b/_literate/data/categorical/Project.toml similarity index 100% rename from _literate/D0-categorical/Project.toml rename to _literate/data/categorical/Project.toml diff --git a/_literate/D0-categorical/tutorial.jl b/_literate/data/categorical/tutorial.jl similarity index 100% rename from _literate/D0-categorical/tutorial.jl rename to _literate/data/categorical/tutorial.jl diff --git a/_literate/D0-dataframe/Manifest.toml b/_literate/data/dataframe/Manifest.toml similarity index 100% rename from _literate/D0-dataframe/Manifest.toml rename to _literate/data/dataframe/Manifest.toml diff --git a/_literate/D0-dataframe/Project.toml b/_literate/data/dataframe/Project.toml similarity index 100% rename from _literate/D0-dataframe/Project.toml rename to _literate/data/dataframe/Project.toml diff --git a/_literate/D0-dataframe/tutorial.jl b/_literate/data/dataframe/tutorial.jl similarity index 100% rename from _literate/D0-dataframe/tutorial.jl rename to _literate/data/dataframe/tutorial.jl diff --git a/_literate/D0-loading/Manifest.toml b/_literate/data/loading/Manifest.toml similarity index 100% rename from _literate/D0-loading/Manifest.toml rename to _literate/data/loading/Manifest.toml diff --git a/_literate/D0-loading/Project.toml b/_literate/data/loading/Project.toml similarity index 100% rename from _literate/D0-loading/Project.toml rename to _literate/data/loading/Project.toml diff --git a/_literate/D0-loading/tutorial.jl b/_literate/data/loading/tutorial.jl similarity index 100% rename from _literate/D0-loading/tutorial.jl rename to _literate/data/loading/tutorial.jl diff --git a/_literate/D0-processing/Manifest.toml b/_literate/data/processing/Manifest.toml similarity index 100% rename from _literate/D0-processing/Manifest.toml rename to _literate/data/processing/Manifest.toml diff --git a/_literate/D0-processing/Project.toml b/_literate/data/processing/Project.toml similarity index 100% rename from _literate/D0-processing/Project.toml rename to _literate/data/processing/Project.toml diff --git a/_literate/D0-processing/tutorial.jl b/_literate/data/processing/tutorial.jl similarity index 100% rename from _literate/D0-processing/tutorial.jl rename to _literate/data/processing/tutorial.jl diff --git a/_literate/D0-scitype/Manifest.toml b/_literate/data/scitype/Manifest.toml similarity index 100% rename from _literate/D0-scitype/Manifest.toml rename to _literate/data/scitype/Manifest.toml diff --git a/_literate/D0-scitype/Project.toml b/_literate/data/scitype/Project.toml similarity index 100% rename from _literate/D0-scitype/Project.toml rename to _literate/data/scitype/Project.toml diff --git a/_literate/D0-scitype/tutorial.jl b/_literate/data/scitype/tutorial.jl similarity index 100% rename from _literate/D0-scitype/tutorial.jl rename to _literate/data/scitype/tutorial.jl diff --git a/_literate/EX-AMES/Manifest.toml b/_literate/end-to-end/AMES/Manifest.toml similarity index 100% rename from _literate/EX-AMES/Manifest.toml rename to _literate/end-to-end/AMES/Manifest.toml diff --git a/_literate/EX-AMES/Project.toml b/_literate/end-to-end/AMES/Project.toml similarity index 100% rename from _literate/EX-AMES/Project.toml rename to _literate/end-to-end/AMES/Project.toml diff --git a/_literate/EX-AMES/tutorial.jl b/_literate/end-to-end/AMES/tutorial.jl similarity index 100% rename from _literate/EX-AMES/tutorial.jl rename to _literate/end-to-end/AMES/tutorial.jl diff --git a/_literate/EX-GLM/Manifest.toml b/_literate/end-to-end/GLM/Manifest.toml similarity index 100% rename from _literate/EX-GLM/Manifest.toml rename to _literate/end-to-end/GLM/Manifest.toml diff --git a/_literate/EX-GLM/Project.toml b/_literate/end-to-end/GLM/Project.toml similarity index 100% rename from _literate/EX-GLM/Project.toml rename to _literate/end-to-end/GLM/Project.toml diff --git a/_literate/EX-GLM/tutorial.jl b/_literate/end-to-end/GLM/tutorial.jl similarity index 100% rename from _literate/EX-GLM/tutorial.jl rename to _literate/end-to-end/GLM/tutorial.jl diff --git a/_literate/EX-airfoil/Manifest.toml b/_literate/end-to-end/airfoil/Manifest.toml similarity index 100% rename from _literate/EX-airfoil/Manifest.toml rename to _literate/end-to-end/airfoil/Manifest.toml diff --git a/_literate/EX-airfoil/Project.toml b/_literate/end-to-end/airfoil/Project.toml similarity index 100% rename from _literate/EX-airfoil/Project.toml rename to _literate/end-to-end/airfoil/Project.toml diff --git a/_literate/EX-airfoil/tutorial.jl b/_literate/end-to-end/airfoil/tutorial.jl similarity index 100% rename from _literate/EX-airfoil/tutorial.jl rename to _literate/end-to-end/airfoil/tutorial.jl diff --git a/_literate/EX-boston-flux/Manifest.toml b/_literate/end-to-end/boston-flux/Manifest.toml similarity index 100% rename from _literate/EX-boston-flux/Manifest.toml rename to _literate/end-to-end/boston-flux/Manifest.toml diff --git a/_literate/EX-boston-flux/Project.toml b/_literate/end-to-end/boston-flux/Project.toml similarity index 100% rename from _literate/EX-boston-flux/Project.toml rename to _literate/end-to-end/boston-flux/Project.toml diff --git a/_literate/EX-boston-flux/tutorial.jl b/_literate/end-to-end/boston-flux/tutorial.jl similarity index 100% rename from _literate/EX-boston-flux/tutorial.jl rename to _literate/end-to-end/boston-flux/tutorial.jl diff --git a/_literate/EX-boston-lgbm/Manifest.toml b/_literate/end-to-end/boston-lgbm/Manifest.toml similarity index 100% rename from _literate/EX-boston-lgbm/Manifest.toml rename to _literate/end-to-end/boston-lgbm/Manifest.toml diff --git a/_literate/EX-boston-lgbm/Project.toml b/_literate/end-to-end/boston-lgbm/Project.toml similarity index 100% rename from _literate/EX-boston-lgbm/Project.toml rename to _literate/end-to-end/boston-lgbm/Project.toml diff --git a/_literate/EX-boston-lgbm/tutorial.jl b/_literate/end-to-end/boston-lgbm/tutorial.jl similarity index 100% rename from _literate/EX-boston-lgbm/tutorial.jl rename to _literate/end-to-end/boston-lgbm/tutorial.jl diff --git a/_literate/EX-breastcancer/Manifest.toml b/_literate/end-to-end/breastcancer/Manifest.toml similarity index 100% rename from _literate/EX-breastcancer/Manifest.toml rename to _literate/end-to-end/breastcancer/Manifest.toml diff --git a/_literate/EX-breastcancer/Project.toml b/_literate/end-to-end/breastcancer/Project.toml similarity index 100% rename from _literate/EX-breastcancer/Project.toml rename to _literate/end-to-end/breastcancer/Project.toml diff --git a/_literate/EX-breastcancer/tutorial.jl b/_literate/end-to-end/breastcancer/tutorial.jl similarity index 100% rename from _literate/EX-breastcancer/tutorial.jl rename to _literate/end-to-end/breastcancer/tutorial.jl diff --git a/_literate/EX-crabs-xgb/Manifest.toml b/_literate/end-to-end/crabs-xgb/Manifest.toml similarity index 100% rename from _literate/EX-crabs-xgb/Manifest.toml rename to _literate/end-to-end/crabs-xgb/Manifest.toml diff --git a/_literate/EX-crabs-xgb/Project.toml b/_literate/end-to-end/crabs-xgb/Project.toml similarity index 100% rename from _literate/EX-crabs-xgb/Project.toml rename to _literate/end-to-end/crabs-xgb/Project.toml diff --git a/_literate/EX-crabs-xgb/tutorial.jl b/_literate/end-to-end/crabs-xgb/tutorial.jl similarity index 100% rename from _literate/EX-crabs-xgb/tutorial.jl rename to _literate/end-to-end/crabs-xgb/tutorial.jl diff --git a/_literate/EX-creditfraud/Manifest.toml b/_literate/end-to-end/creditfraud/Manifest.toml similarity index 100% rename from _literate/EX-creditfraud/Manifest.toml rename to _literate/end-to-end/creditfraud/Manifest.toml diff --git a/_literate/EX-creditfraud/Project.toml b/_literate/end-to-end/creditfraud/Project.toml similarity index 100% rename from _literate/EX-creditfraud/Project.toml rename to _literate/end-to-end/creditfraud/Project.toml diff --git a/_literate/EX-creditfraud/tutorial.jl b/_literate/end-to-end/creditfraud/tutorial.jl similarity index 100% rename from _literate/EX-creditfraud/tutorial.jl rename to _literate/end-to-end/creditfraud/tutorial.jl diff --git a/_literate/EX-horse/Manifest.toml b/_literate/end-to-end/horse/Manifest.toml similarity index 100% rename from _literate/EX-horse/Manifest.toml rename to _literate/end-to-end/horse/Manifest.toml diff --git a/_literate/EX-horse/Project.toml b/_literate/end-to-end/horse/Project.toml similarity index 100% rename from _literate/EX-horse/Project.toml rename to _literate/end-to-end/horse/Project.toml diff --git a/_literate/EX-horse/tutorial.jl b/_literate/end-to-end/horse/tutorial.jl similarity index 100% rename from _literate/EX-horse/tutorial.jl rename to _literate/end-to-end/horse/tutorial.jl diff --git a/_literate/EX-housekingcounty/Manifest.toml b/_literate/end-to-end/housekingcounty/Manifest.toml similarity index 100% rename from _literate/EX-housekingcounty/Manifest.toml rename to _literate/end-to-end/housekingcounty/Manifest.toml diff --git a/_literate/EX-housekingcounty/Project.toml b/_literate/end-to-end/housekingcounty/Project.toml similarity index 100% rename from _literate/EX-housekingcounty/Project.toml rename to _literate/end-to-end/housekingcounty/Project.toml diff --git a/_literate/EX-housekingcounty/tutorial.jl b/_literate/end-to-end/housekingcounty/tutorial.jl similarity index 100% rename from _literate/EX-housekingcounty/tutorial.jl rename to _literate/end-to-end/housekingcounty/tutorial.jl diff --git a/_literate/EX-powergen/Manifest.toml b/_literate/end-to-end/powergen/Manifest.toml similarity index 100% rename from _literate/EX-powergen/Manifest.toml rename to _literate/end-to-end/powergen/Manifest.toml diff --git a/_literate/EX-powergen/Project.toml b/_literate/end-to-end/powergen/Project.toml similarity index 100% rename from _literate/EX-powergen/Project.toml rename to _literate/end-to-end/powergen/Project.toml diff --git a/_literate/EX-powergen/tutorial.jl b/_literate/end-to-end/powergen/tutorial.jl similarity index 100% rename from _literate/EX-powergen/tutorial.jl rename to _literate/end-to-end/powergen/tutorial.jl diff --git a/_literate/EX-telco/Manifest.toml b/_literate/end-to-end/telco/Manifest.toml similarity index 100% rename from _literate/EX-telco/Manifest.toml rename to _literate/end-to-end/telco/Manifest.toml diff --git a/_literate/EX-telco/Project.toml b/_literate/end-to-end/telco/Project.toml similarity index 100% rename from _literate/EX-telco/Project.toml rename to _literate/end-to-end/telco/Project.toml diff --git a/_literate/EX-telco/tutorial.jl b/_literate/end-to-end/telco/tutorial.jl similarity index 100% rename from _literate/EX-telco/tutorial.jl rename to _literate/end-to-end/telco/tutorial.jl diff --git a/_literate/EX-wine/Manifest.toml b/_literate/end-to-end/wine/Manifest.toml similarity index 100% rename from _literate/EX-wine/Manifest.toml rename to _literate/end-to-end/wine/Manifest.toml diff --git a/_literate/EX-wine/Project.toml b/_literate/end-to-end/wine/Project.toml similarity index 100% rename from _literate/EX-wine/Project.toml rename to _literate/end-to-end/wine/Project.toml diff --git a/_literate/EX-wine/tutorial.jl b/_literate/end-to-end/wine/tutorial.jl similarity index 100% rename from _literate/EX-wine/tutorial.jl rename to _literate/end-to-end/wine/tutorial.jl diff --git a/_literate/A-composing-models/Manifest.toml b/_literate/getting-started/composing-models/Manifest.toml similarity index 100% rename from _literate/A-composing-models/Manifest.toml rename to _literate/getting-started/composing-models/Manifest.toml diff --git a/_literate/A-composing-models/Project.toml b/_literate/getting-started/composing-models/Project.toml similarity index 100% rename from _literate/A-composing-models/Project.toml rename to _literate/getting-started/composing-models/Project.toml diff --git a/_literate/A-composing-models/tutorial.jl b/_literate/getting-started/composing-models/tutorial.jl similarity index 100% rename from _literate/A-composing-models/tutorial.jl rename to _literate/getting-started/composing-models/tutorial.jl diff --git a/_literate/A-ensembles-2/Manifest.toml b/_literate/getting-started/ensembles-2/Manifest.toml similarity index 100% rename from _literate/A-ensembles-2/Manifest.toml rename to _literate/getting-started/ensembles-2/Manifest.toml diff --git a/_literate/A-ensembles-2/Project.toml b/_literate/getting-started/ensembles-2/Project.toml similarity index 100% rename from _literate/A-ensembles-2/Project.toml rename to _literate/getting-started/ensembles-2/Project.toml diff --git a/_literate/A-ensembles-2/tutorial.jl b/_literate/getting-started/ensembles-2/tutorial.jl similarity index 100% rename from _literate/A-ensembles-2/tutorial.jl rename to _literate/getting-started/ensembles-2/tutorial.jl diff --git a/_literate/A-ensembles/Manifest.toml b/_literate/getting-started/ensembles/Manifest.toml similarity index 100% rename from _literate/A-ensembles/Manifest.toml rename to _literate/getting-started/ensembles/Manifest.toml diff --git a/_literate/A-ensembles/Project.toml b/_literate/getting-started/ensembles/Project.toml similarity index 100% rename from _literate/A-ensembles/Project.toml rename to _literate/getting-started/ensembles/Project.toml diff --git a/_literate/A-ensembles/tutorial.jl b/_literate/getting-started/ensembles/tutorial.jl similarity index 100% rename from _literate/A-ensembles/tutorial.jl rename to _literate/getting-started/ensembles/tutorial.jl diff --git a/_literate/A-fit-predict/Manifest.toml b/_literate/getting-started/fit-predict/Manifest.toml similarity index 100% rename from _literate/A-fit-predict/Manifest.toml rename to _literate/getting-started/fit-predict/Manifest.toml diff --git a/_literate/A-fit-predict/Project.toml b/_literate/getting-started/fit-predict/Project.toml similarity index 100% rename from _literate/A-fit-predict/Project.toml rename to _literate/getting-started/fit-predict/Project.toml diff --git a/_literate/A-fit-predict/tutorial.jl b/_literate/getting-started/fit-predict/tutorial.jl similarity index 100% rename from _literate/A-fit-predict/tutorial.jl rename to _literate/getting-started/fit-predict/tutorial.jl diff --git a/_literate/A-model-choice/Manifest.toml b/_literate/getting-started/model-choice/Manifest.toml similarity index 100% rename from _literate/A-model-choice/Manifest.toml rename to _literate/getting-started/model-choice/Manifest.toml diff --git a/_literate/A-model-choice/Project.toml b/_literate/getting-started/model-choice/Project.toml similarity index 100% rename from _literate/A-model-choice/Project.toml rename to _literate/getting-started/model-choice/Project.toml diff --git a/_literate/A-model-choice/tutorial.jl b/_literate/getting-started/model-choice/tutorial.jl similarity index 100% rename from _literate/A-model-choice/tutorial.jl rename to _literate/getting-started/model-choice/tutorial.jl diff --git a/_literate/A-model-tuning/Manifest.toml b/_literate/getting-started/model-tuning/Manifest.toml similarity index 100% rename from _literate/A-model-tuning/Manifest.toml rename to _literate/getting-started/model-tuning/Manifest.toml diff --git a/_literate/A-model-tuning/Project.toml b/_literate/getting-started/model-tuning/Project.toml similarity index 100% rename from _literate/A-model-tuning/Project.toml rename to _literate/getting-started/model-tuning/Project.toml diff --git a/_literate/A-model-tuning/tutorial.jl b/_literate/getting-started/model-tuning/tutorial.jl similarity index 100% rename from _literate/A-model-tuning/tutorial.jl rename to _literate/getting-started/model-tuning/tutorial.jl diff --git a/_literate/A-stacking/Manifest.toml b/_literate/getting-started/stacking/Manifest.toml similarity index 100% rename from _literate/A-stacking/Manifest.toml rename to _literate/getting-started/stacking/Manifest.toml diff --git a/_literate/A-stacking/Project.toml b/_literate/getting-started/stacking/Project.toml similarity index 100% rename from _literate/A-stacking/Project.toml rename to _literate/getting-started/stacking/Project.toml diff --git a/_literate/A-stacking/tutorial.jl b/_literate/getting-started/stacking/tutorial.jl similarity index 100% rename from _literate/A-stacking/tutorial.jl rename to _literate/getting-started/stacking/tutorial.jl diff --git a/_literate/ISL-lab-10/Manifest.toml b/_literate/isl/lab-10/Manifest.toml similarity index 100% rename from _literate/ISL-lab-10/Manifest.toml rename to _literate/isl/lab-10/Manifest.toml diff --git a/_literate/ISL-lab-10/Project.toml b/_literate/isl/lab-10/Project.toml similarity index 100% rename from _literate/ISL-lab-10/Project.toml rename to _literate/isl/lab-10/Project.toml diff --git a/_literate/ISL-lab-10/tutorial.jl b/_literate/isl/lab-10/tutorial.jl similarity index 100% rename from _literate/ISL-lab-10/tutorial.jl rename to _literate/isl/lab-10/tutorial.jl diff --git a/_literate/ISL-lab-2/Manifest.toml b/_literate/isl/lab-2/Manifest.toml similarity index 100% rename from _literate/ISL-lab-2/Manifest.toml rename to _literate/isl/lab-2/Manifest.toml diff --git a/_literate/ISL-lab-2/Project.toml b/_literate/isl/lab-2/Project.toml similarity index 100% rename from _literate/ISL-lab-2/Project.toml rename to _literate/isl/lab-2/Project.toml diff --git a/_literate/ISL-lab-2/tutorial.jl b/_literate/isl/lab-2/tutorial.jl similarity index 100% rename from _literate/ISL-lab-2/tutorial.jl rename to _literate/isl/lab-2/tutorial.jl diff --git a/_literate/ISL-lab-3/Manifest.toml b/_literate/isl/lab-3/Manifest.toml similarity index 100% rename from _literate/ISL-lab-3/Manifest.toml rename to _literate/isl/lab-3/Manifest.toml diff --git a/_literate/ISL-lab-3/Project.toml b/_literate/isl/lab-3/Project.toml similarity index 100% rename from _literate/ISL-lab-3/Project.toml rename to _literate/isl/lab-3/Project.toml diff --git a/_literate/ISL-lab-3/tutorial.jl b/_literate/isl/lab-3/tutorial.jl similarity index 100% rename from _literate/ISL-lab-3/tutorial.jl rename to _literate/isl/lab-3/tutorial.jl diff --git a/_literate/ISL-lab-4/Manifest.toml b/_literate/isl/lab-4/Manifest.toml similarity index 100% rename from _literate/ISL-lab-4/Manifest.toml rename to _literate/isl/lab-4/Manifest.toml diff --git a/_literate/ISL-lab-4/Project.toml b/_literate/isl/lab-4/Project.toml similarity index 100% rename from _literate/ISL-lab-4/Project.toml rename to _literate/isl/lab-4/Project.toml diff --git a/_literate/ISL-lab-4/tutorial.jl b/_literate/isl/lab-4/tutorial.jl similarity index 100% rename from _literate/ISL-lab-4/tutorial.jl rename to _literate/isl/lab-4/tutorial.jl diff --git a/_literate/ISL-lab-5/Manifest.toml b/_literate/isl/lab-5/Manifest.toml similarity index 100% rename from _literate/ISL-lab-5/Manifest.toml rename to _literate/isl/lab-5/Manifest.toml diff --git a/_literate/ISL-lab-5/Project.toml b/_literate/isl/lab-5/Project.toml similarity index 100% rename from _literate/ISL-lab-5/Project.toml rename to _literate/isl/lab-5/Project.toml diff --git a/_literate/ISL-lab-5/tutorial.jl b/_literate/isl/lab-5/tutorial.jl similarity index 100% rename from _literate/ISL-lab-5/tutorial.jl rename to _literate/isl/lab-5/tutorial.jl diff --git a/_literate/ISL-lab-6b/Manifest.toml b/_literate/isl/lab-6b/Manifest.toml similarity index 100% rename from _literate/ISL-lab-6b/Manifest.toml rename to _literate/isl/lab-6b/Manifest.toml diff --git a/_literate/ISL-lab-6b/Project.toml b/_literate/isl/lab-6b/Project.toml similarity index 100% rename from _literate/ISL-lab-6b/Project.toml rename to _literate/isl/lab-6b/Project.toml diff --git a/_literate/ISL-lab-6b/tutorial.jl b/_literate/isl/lab-6b/tutorial.jl similarity index 100% rename from _literate/ISL-lab-6b/tutorial.jl rename to _literate/isl/lab-6b/tutorial.jl diff --git a/_literate/ISL-lab-8/Manifest.toml b/_literate/isl/lab-8/Manifest.toml similarity index 100% rename from _literate/ISL-lab-8/Manifest.toml rename to _literate/isl/lab-8/Manifest.toml diff --git a/_literate/ISL-lab-8/Project.toml b/_literate/isl/lab-8/Project.toml similarity index 100% rename from _literate/ISL-lab-8/Project.toml rename to _literate/isl/lab-8/Project.toml diff --git a/_literate/ISL-lab-8/tutorial.jl b/_literate/isl/lab-8/tutorial.jl similarity index 100% rename from _literate/ISL-lab-8/tutorial.jl rename to _literate/isl/lab-8/tutorial.jl diff --git a/_literate/ISL-lab-9/Manifest.toml b/_literate/isl/lab-9/Manifest.toml similarity index 100% rename from _literate/ISL-lab-9/Manifest.toml rename to _literate/isl/lab-9/Manifest.toml diff --git a/_literate/ISL-lab-9/Project.toml b/_literate/isl/lab-9/Project.toml similarity index 100% rename from _literate/ISL-lab-9/Project.toml rename to _literate/isl/lab-9/Project.toml diff --git a/_literate/ISL-lab-9/tutorial.jl b/_literate/isl/lab-9/tutorial.jl similarity index 100% rename from _literate/ISL-lab-9/tutorial.jl rename to _literate/isl/lab-9/tutorial.jl diff --git a/advanced/ensembles-3.md b/advanced/ensembles-3.md index 8cae7e88..44f0a03c 100644 --- a/advanced/ensembles-3.md +++ b/advanced/ensembles-3.md @@ -3,4 +3,4 @@ # Ensemble models 3 (learning networks) -\tutorial{ADV-ensembles-3} \ No newline at end of file +\tutorial{advanced/ensembles-3} \ No newline at end of file diff --git a/collapse-script.jl b/collapse-script.jl index 85db5267..efdb7ce4 100644 --- a/collapse-script.jl +++ b/collapse-script.jl @@ -71,22 +71,24 @@ function read_tutorials(tutorials_dir) # Iterate over all files named "tutorial.js" in subdirectories for subdir in readdir(tutorials_dir) - file_path = joinpath(tutorials_dir, subdir, "tutorial.jl") - if isfile(file_path) - try - file = open(file_path, "r") - content = read(file, String) - close(file) - file = open(file_path, "w") - modified_content = introduce_dropdowns(content) - write(file, modified_content) - close(file) - # Store content in the dictionary - catch e - throw("Error reading file '$file_path': $(e)") + for tutorial_subdir in readdir(joinpath(tutorials_dir, subdir)) + file_path = joinpath(tutorials_dir, subdir, tutorial_subdir, "tutorial.jl") + if isfile(file_path) + try + file = open(file_path, "r") + content = read(file, String) + close(file) + file = open(file_path, "w") + modified_content = introduce_dropdowns(content) + write(file, modified_content) + close(file) + # Store content in the dictionary + catch e + throw("Error reading file '$file_path': $(e)") + end end end - end + end end diff --git a/data/categorical.md b/data/categorical.md index a8afbf74..acd1585c 100644 --- a/data/categorical.md +++ b/data/categorical.md @@ -3,4 +3,4 @@ # Handling categorical data -\tutorial{D0-categorical} +\tutorial{data/categorical} diff --git a/data/dataframe.md b/data/dataframe.md index c0440db4..5e11e559 100644 --- a/data/dataframe.md +++ b/data/dataframe.md @@ -2,4 +2,4 @@ # Manipulating a DataFrame -\tutorial{D0-dataframe} +\tutorial{data/dataframe} diff --git a/data/loading.md b/data/loading.md index b6b846df..33584d96 100644 --- a/data/loading.md +++ b/data/loading.md @@ -3,4 +3,4 @@ # Loading and elementary processing of data -\tutorial{D0-loading} +\tutorial{data/loading} diff --git a/data/processing.md b/data/processing.md index e0a8ce8c..fb340536 100644 --- a/data/processing.md +++ b/data/processing.md @@ -3,4 +3,4 @@ # Further data processing -\tutorial{D0-processing} +\tutorial{data/processing} diff --git a/data/scitype.md b/data/scitype.md index 7051694d..02eb2f18 100644 --- a/data/scitype.md +++ b/data/scitype.md @@ -3,4 +3,4 @@ # Data interpretation: Scientific Types -\tutorial{D0-scitype} +\tutorial{data/scitype} diff --git a/end-to-end/AMES.md b/end-to-end/AMES.md index 39f9cf3f..2d1fafc5 100644 --- a/end-to-end/AMES.md +++ b/end-to-end/AMES.md @@ -3,4 +3,4 @@ # AMES -\tutorial{EX-AMES} +\tutorial{end-to-end/AMES} diff --git a/end-to-end/HouseKingCounty.md b/end-to-end/HouseKingCounty.md index b0181207..47f01aaf 100644 --- a/end-to-end/HouseKingCounty.md +++ b/end-to-end/HouseKingCounty.md @@ -4,4 +4,4 @@ # House King County -\tutorial{EX-housekingcounty} +\tutorial{end-to-end/housekingcounty} diff --git a/end-to-end/airfoil.md b/end-to-end/airfoil.md index 35d0c833..da074871 100644 --- a/end-to-end/airfoil.md +++ b/end-to-end/airfoil.md @@ -3,4 +3,4 @@ # Airfoil -\tutorial{EX-airfoil} +\tutorial{end-to-end/airfoil} diff --git a/end-to-end/boston-flux.md b/end-to-end/boston-flux.md index 572a10ae..6825fd42 100644 --- a/end-to-end/boston-flux.md +++ b/end-to-end/boston-flux.md @@ -3,4 +3,4 @@ # Boston with Flux -\tutorial{EX-boston-flux} +\tutorial{end-to-end/boston-flux} diff --git a/end-to-end/boston-lgbm.md b/end-to-end/boston-lgbm.md index cc505211..7520b652 100644 --- a/end-to-end/boston-lgbm.md +++ b/end-to-end/boston-lgbm.md @@ -3,4 +3,4 @@ # Boston with LightGBM -\tutorial{EX-boston-lgbm} +\tutorial{end-to-end/boston-lgbm} diff --git a/end-to-end/breastcancer.md b/end-to-end/breastcancer.md index 9972d7f1..462bd979 100644 --- a/end-to-end/breastcancer.md +++ b/end-to-end/breastcancer.md @@ -3,4 +3,4 @@ # Breast Cancer Wisconsin(Diagnostic) -\tutorial{EX-breastcancer} +\tutorial{end-to-end/breastcancer} diff --git a/end-to-end/crabs-xgb.md b/end-to-end/crabs-xgb.md index e995b8a5..0adbfe4c 100644 --- a/end-to-end/crabs-xgb.md +++ b/end-to-end/crabs-xgb.md @@ -3,4 +3,4 @@ # Crabs with XGBoost -\tutorial{EX-crabs-xgb} +\tutorial{end-to-end/crabs-xgb} diff --git a/end-to-end/creditfraud.md b/end-to-end/creditfraud.md index 86414044..d2fd5f8c 100644 --- a/end-to-end/creditfraud.md +++ b/end-to-end/creditfraud.md @@ -3,4 +3,4 @@ # Credit Card Fraud -\tutorial{EX-creditfraud} +\tutorial{end-to-end/creditfraud} diff --git a/end-to-end/glm.md b/end-to-end/glm.md index d5d0acf0..c20d555b 100644 --- a/end-to-end/glm.md +++ b/end-to-end/glm.md @@ -2,4 +2,4 @@ # Using GLM.jl -\tutorial{EX-GLM} +\tutorial{end-to-end/GLM} diff --git a/end-to-end/horse.md b/end-to-end/horse.md index 7260531b..c2bb3bb9 100644 --- a/end-to-end/horse.md +++ b/end-to-end/horse.md @@ -3,4 +3,4 @@ # Horse colic data -\tutorial{EX-horse} +\tutorial{end-to-end/horse} diff --git a/end-to-end/powergen.md b/end-to-end/powergen.md index c637ca23..8a953b9b 100644 --- a/end-to-end/powergen.md +++ b/end-to-end/powergen.md @@ -2,4 +2,4 @@ # Power Generation -\tutorial{EX-powergen} +\tutorial{end-to-end/powergen} diff --git a/end-to-end/telco.md b/end-to-end/telco.md index 5e6b5f9f..c4e544d2 100644 --- a/end-to-end/telco.md +++ b/end-to-end/telco.md @@ -4,4 +4,4 @@ An end-to-end example using the **Telco Churn** dataset -\tutorial{EX-telco} +\tutorial{end-to-end/telco} diff --git a/end-to-end/wine.md b/end-to-end/wine.md index a3851843..e31e213b 100644 --- a/end-to-end/wine.md +++ b/end-to-end/wine.md @@ -2,4 +2,4 @@ # Wine -\tutorial{EX-wine} +\tutorial{end-to-end/wine} diff --git a/getting-started/choosing-a-model.md b/getting-started/choosing-a-model.md index 2788109f..428f0326 100644 --- a/getting-started/choosing-a-model.md +++ b/getting-started/choosing-a-model.md @@ -3,4 +3,4 @@ # Choosing and evaluating a model -\tutorial{A-model-choice} +\tutorial{getting-started/model-choice} diff --git a/getting-started/composing-models.md b/getting-started/composing-models.md index f776ea4c..3b752bc0 100644 --- a/getting-started/composing-models.md +++ b/getting-started/composing-models.md @@ -3,4 +3,4 @@ # Composing models -\tutorial{A-composing-models} +\tutorial{getting-started/composing-models} diff --git a/getting-started/ensembles-2.md b/getting-started/ensembles-2.md index d020db6c..5a7b96a6 100644 --- a/getting-started/ensembles-2.md +++ b/getting-started/ensembles-2.md @@ -3,4 +3,4 @@ # Ensemble models 2 -\tutorial{A-ensembles-2} +\tutorial{getting-started/ensembles-2} diff --git a/getting-started/ensembles.md b/getting-started/ensembles.md index 4597dff5..0f4fa2d4 100644 --- a/getting-started/ensembles.md +++ b/getting-started/ensembles.md @@ -3,4 +3,4 @@ # Ensemble models -\tutorial{A-ensembles} +\tutorial{getting-started/ensembles} diff --git a/getting-started/fit-and-predict.md b/getting-started/fit-and-predict.md index ae452136..b7b2f45b 100644 --- a/getting-started/fit-and-predict.md +++ b/getting-started/fit-and-predict.md @@ -3,4 +3,4 @@ # Fit, predict, transform -\tutorial{A-fit-predict} +\tutorial{getting-started/fit-predict} diff --git a/getting-started/model-tuning.md b/getting-started/model-tuning.md index 38260df7..301bb29e 100644 --- a/getting-started/model-tuning.md +++ b/getting-started/model-tuning.md @@ -3,4 +3,4 @@ # Tuning a model -\tutorial{A-model-tuning} +\tutorial{getting-started/model-tuning} diff --git a/getting-started/stacking.md b/getting-started/stacking.md index da5d33e2..2602b935 100644 --- a/getting-started/stacking.md +++ b/getting-started/stacking.md @@ -5,4 +5,4 @@ # Stacking -\tutorial{A-stacking} +\tutorial{getting-started/stacking} diff --git a/index.md b/index.md index 509d4045..1ce7bcbe 100644 --- a/index.md +++ b/index.md @@ -29,7 +29,7 @@ What kind of user are you? These are our recommendations for different types of @@tab-content,selected-content ## Completely new to Julia? - Try one of these [external resources](/external-resources): + Try one of these [external resources](/info/external-resources): - [Julia's learning resources page](https://julialang.org/learning/) @@ -54,8 +54,8 @@ What kind of user are you? These are our recommendations for different types of # New to machine learning but have moderate Julia skills? Start out with the [Introduction to Statistical - Learning](/isl) tutorials, or one of - these [external resources](/external-resources): + Learning](/info/isl) tutorials, or one of + these [external resources](/info/external-resources): - [MLCourse](https://github.com/jbrea/MLCourse): Teaching material for an introductory machine learning course at EPFL (for an interactive @@ -72,8 +72,8 @@ What kind of user are you? These are our recommendations for different types of To get started with Julia, you can try one of the external resources found in the **New to Julia** tab. Once you have basic Julia competency, try the [Introduction to - Statistical Learning](/isl) - tutorials or one of these [external reources](/external-resources): + Statistical Learning](/info/isl) + tutorials or one of these [external resources](/info/external-resources): - [Julia Data Science](https://github.com/JuliaDataScience/JuliaDataScience): Book diff --git a/data.md b/info/data.md similarity index 100% rename from data.md rename to info/data.md diff --git a/end-to-end.md b/info/end-to-end.md similarity index 100% rename from end-to-end.md rename to info/end-to-end.md diff --git a/external-resources.md b/info/external-resources.md similarity index 100% rename from external-resources.md rename to info/external-resources.md diff --git a/getting-started.md b/info/getting-started.md similarity index 100% rename from getting-started.md rename to info/getting-started.md diff --git a/how-to-run-code.md b/info/how-to-run-code.md similarity index 100% rename from how-to-run-code.md rename to info/how-to-run-code.md diff --git a/isl.md b/info/isl.md similarity index 100% rename from isl.md rename to info/isl.md diff --git a/isl/lab-10.md b/isl/lab-10.md index af2f0ed0..3576b4d6 100644 --- a/isl/lab-10.md +++ b/isl/lab-10.md @@ -2,4 +2,4 @@ # Lab 10 - PCA and Clustering -\tutorial{ISL-lab-10} +\tutorial{isl/lab-10} diff --git a/isl/lab-2.md b/isl/lab-2.md index fb07f641..1c965ff0 100644 --- a/isl/lab-2.md +++ b/isl/lab-2.md @@ -2,4 +2,4 @@ # Lab 2 -\tutorial{ISL-lab-2} +\tutorial{isl/lab-2} diff --git a/isl/lab-3.md b/isl/lab-3.md index b328c278..98ef8d68 100644 --- a/isl/lab-3.md +++ b/isl/lab-3.md @@ -2,4 +2,4 @@ # Lab 3 - Linear Regression -\tutorial{ISL-lab-3} +\tutorial{isl/lab-3} diff --git a/isl/lab-4.md b/isl/lab-4.md index 3db5ab18..4c16872f 100644 --- a/isl/lab-4.md +++ b/isl/lab-4.md @@ -2,4 +2,4 @@ # Lab 4 - Logistic Regression, LDA, QDA, KNN -\tutorial{ISL-lab-4} +\tutorial{isl/lab-4} diff --git a/isl/lab-5.md b/isl/lab-5.md index ce4c4a01..9b43e57a 100644 --- a/isl/lab-5.md +++ b/isl/lab-5.md @@ -2,4 +2,4 @@ # Lab 5 - Cross validation and the bootstrap -\tutorial{ISL-lab-5} +\tutorial{isl/lab-5} diff --git a/isl/lab-6b.md b/isl/lab-6b.md index 47fc7f0b..12e46d49 100644 --- a/isl/lab-6b.md +++ b/isl/lab-6b.md @@ -2,4 +2,4 @@ # Lab 6b - Ridge and Lasso regression -\tutorial{ISL-lab-6b} +\tutorial{isl/lab-6b} diff --git a/isl/lab-8.md b/isl/lab-8.md index bf2c4301..74929ea2 100644 --- a/isl/lab-8.md +++ b/isl/lab-8.md @@ -2,4 +2,4 @@ # Lab 8 - Tree-based models -\tutorial{ISL-lab-8} +\tutorial{isl/lab-8} diff --git a/isl/lab-9.md b/isl/lab-9.md index 487b0d27..00c3259e 100644 --- a/isl/lab-9.md +++ b/isl/lab-9.md @@ -2,4 +2,4 @@ # Lab 9 - Support Vector Machine -\tutorial{ISL-lab-9} +\tutorial{isl/lab-9} diff --git a/residuals.png b/residuals.png deleted file mode 100644 index dc0a8bdb..00000000 Binary files a/residuals.png and /dev/null differ diff --git a/routes.json b/routes.json new file mode 100644 index 00000000..e3f29c53 --- /dev/null +++ b/routes.json @@ -0,0 +1,77 @@ +[ + { "name": "Home", "href": "/", "sections": [], "sectionItemWidth": "", "id": "home" }, + { + "name": "Data Basics", + "id": "data", + "href": "/info/data", + "sections": [ + { "name": "Loading Data", "href": "/data/loading/" }, + { "name": "Data Frames", "href": "/data/dataframe/" }, + { "name": "Categorical Arrays", "href": "/data/categorical/" }, + { "name": "Scientific Type", "href": "/data/scitype/" }, + { "name": "Data processing", "href": "/data/processing/" } + ], + "sectionItemWidth": "short-item" + }, + { + "name": "Getting Started", + "id": "getting-started", + "href": "/info/getting-started", + "sections": [ + { "name": "Choosing a model", "href": "/getting-started/choosing-a-model/" }, + { "name": "Fit, predict, transform", "href": "/getting-started/fit-and-predict/" }, + { "name": "Model tuning", "href": "/getting-started/model-tuning/" }, + { "name": "Ensembles", "href": "/getting-started/ensembles/" }, + { "name": "Ensembles (2)", "href": "/getting-started/ensembles-2/" }, + { "name": "Composing models", "href": "/getting-started/composing-models/" }, + { "name": "Stacking", "href": "/getting-started/stacking/" } + ], + "sectionItemWidth": "medium-item" + }, + { + "name": "Intro to Stats Learning", + "id": "stats-learning", + "href": "/info/isl", + "sections": [ + { "name": "Lab 2", "href": "/isl/lab-2/" }, + { "name": "Lab 3", "href": "/isl/lab-3/" }, + { "name": "Lab 4", "href": "/isl/lab-4/" }, + { "name": "Lab 5", "href": "/isl/lab-5/" }, + { "name": "Lab 6b", "href": "/isl/lab-6b/" }, + { "name": "Lab 8", "href": "/isl/lab-8/" }, + { "name": "Lab 9", "href": "/isl/lab-9/" }, + { "name": "Lab 10", "href": "/isl/lab-10/" } + ], + "sectionItemWidth": "long-item" + }, + + { + "name": "End to End", + "id": "end-to-end", + "href": "/info/end-to-end", + "sections": [ + { "name": "Telco Churn", "href": "/end-to-end/telco/" }, + { "name": "AMES", "href": "/end-to-end/AMES/" }, + { "name": "Wine", "href": "/end-to-end/wine/" }, + { "name": "Crabs (XGB)", "href": "/end-to-end/crabs-xgb/" }, + { "name": "Horse", "href": "/end-to-end/horse/" }, + { "name": "King County Houses", "href": "/end-to-end/HouseKingCounty/" }, + { "name": "Airfoil", "href": "/end-to-end/airfoil" }, + { "name": "Boston (lgbm)", "href": "/end-to-end/boston-lgbm" }, + { "name": "Using GLM.jl", "href": "/end-to-end/glm/" }, + { "name": "Power Generation", "href": "/end-to-end/powergen/" }, + { "name": "Boston (Flux)", "href": "/end-to-end/boston-flux" }, + { "name": "Breast Cancer", "href": "/end-to-end/breastcancer" }, + { "name": "Credit Fraud", "href": "/end-to-end/creditfraud" } + ], + "sectionItemWidth": "long-item" + }, + { + "name": "Advanced", + "id": "advanced", + "href": "#!", + "sections": [{ "name": "Ensembles (3)", "href": "/advanced/ensembles-3" }], + "sectionItemWidth": "medium-item" + } + ] + \ No newline at end of file diff --git a/solar_scatter.png b/solar_scatter.png deleted file mode 100644 index 2f3ac128..00000000 Binary files a/solar_scatter.png and /dev/null differ diff --git a/wind_scatter.png b/wind_scatter.png deleted file mode 100644 index 46bac34b..00000000 Binary files a/wind_scatter.png and /dev/null differ