Back to home

blog/

python-ml

Version: 0.7.1

Last Updated: Unknown


Basic Lift Template

Use this tempalate to generate new lift projects.

Required

VariableData TypeInfo
namestringName of the blog post

Module files

1---
2basedir: content/blog
3---
4---
5date: "<%= name.split('-').filter((_data, index) => index < 3).join("-") %>"
6image: https://cdn.dennisokeeffe.com/assets/<%= name %>/main-image.png
7title: <%= _.startCase(name.split('-').filter((_data, index) => index >= 3)) %>
8description: <%= description %>
9tags: "python,100daysofpython,machine learning"
10icons: "dok,python,conda"
11series:
12 - "100 Days of Python": 0
13---
14
15> This is Day TODO of the #100DaysOfPython challenge.
16
17This post will use the ... library to ... .
18
19Source code can be found on my GitHub repo [`okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>`](https://github.com/okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>).
20
21## Prerequisites
22
231. Familiarity [Conda](https://docs.conda.io/projects/conda/en/latest/index.html) package, dependency and virtual environment manager. A handy additional reference for Conda is the blog post ["The Definitive Guide to Conda Environments"](https://towardsdatascience.com/a-guide-to-conda-environments-bc6180fc533) on "Towards Data Science".
242. Familiarity with [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/gettingstarted/install.html). See [here](https://blog.dennisokeeffe.com/blog/2021-07-19-hello-jupyter-notebook) for my post on JupyterLab.
253. These projects will also run Python notebooks on VSCode with the [Jupyter Notebooks](https://code.visualstudio.com/docs/datascience/jupyter-notebooks) extension. If you do not use VSCode, it is expected that you know how to run notebooks (or alter the method for what works best for you).
26
27## Getting started
28
29Let's create the `<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>` directory and install the required packages.
30
31```s
32# Make the `<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>` directory
33$ mkdir <%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>
34$ cd <%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>
35
36# Create a docs folder to place our notebook
37$ mkdir docs
38$ touch docs/<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>
39```
40
41At this stage, ...
42
43We can now begin adding code to our notebook.
44
45## ...
46
47In our file `docs/<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>`, we can add the following:
48
49```py
50# Importing our required libraries
51from sklearn import datasets
52import pandas as pd
53import numpy as np
54import matplotlib.pyplot as plt
55plt.style.use('ggplot')
56```
57
58## Summary
59
60Today's post demonstrated how to ... .
61
62## Resources and further reading
63
641. [Conda](https://docs.conda.io/projects/conda/en/latest/index.html)
652. [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/gettingstarted/install.html)
663. [Jupyter Notebooks](https://code.visualstudio.com/docs/datascience/jupyter-notebooks)
674. ["The Definitive Guide to Conda Environments"](https://towardsdatascience.com/a-guide-to-conda-environments-bc6180fc533)
685. [`okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>`](https://github.com/okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>)
69
70_Photo credit: [`user`](https://unsplash.com/@user)_

Install


Lift generate


Repository

https://github.com/okeeffed/pkg-lift-blog

Sections