Code Monkey home page Code Monkey logo

ai-starter-kit's Introduction

AI Starter Kit (using Jupyter Notebooks)

A template to prototype your AI/ML projects using Jupyter Notebooks.

Jupyter notebooks simply Python development by:

  • allowing the execution of individual code snippets
  • allowing markdown alongside code for better documentation

You can follow the setup instructions below to clone and setup this template on your local machine and start working on the notebook.ipynb.

Looking for inspiration? Check out the examples folder in this project and/or this AI / ML manual.

Contribute

Feel free to open PRs to add information / tools to benefit the entire community!

Project Name

A short description of the project.

Requirements

  • Python 3.10
  • Conda
  • Jupyter notebook (or the Jupyter extension in VS Code)

Setup

  1. Install Miniconda: Download and install Miniconda for your platform from https://docs.conda.io/en/latest/miniconda.html.

  2. Clone the repository: Clone the repository using the following command:

    [email protected]:Ashwin27/ai-starter-kit.git

  3. Create a new Conda environment: Open the terminal app and navigate to the project directory. Then, run the following command:

    chmod +x setup.sh ./setup.sh

    This will create a new environment called "myenv" with Python 3.10, activate the environment, and install the necessary packages listed in the requirements.txt file.

  4. Launch Jupyter notebook: Launch Jupyter notebook by running the following command:

    jupyter notebook

    This will open Jupyter notebook in your default web browser.

  5. Open the notebook: Open the notebook in Jupyter notebook and run the cells to execute the code.

Usage

  • notebook.ipynb: A Jupyter notebook file containing the code for the project.
  • requirements.txt: A file containing a list of packages and their versions required for the project.

Useful links on running Jupyter notebooks managed by Conda on VS Code:

  1. Working with Jupyter notebooks in VS Code
  2. Using Python environments with VS Code

A good alternative to running Jupyter notebooks locally is using Google Collab.

To add or remove dependencies in your Python project while keeping the environment.yml file up-to-date, you can use Conda to install or uninstall packages.

Adding Dependencies

To add a new dependency to your project, you can use the following command:

conda install <package-name>

Replace <package-name> with the name of the package you want to install. If you want to install a specific version of the package, you can use the following command:

conda install <package-name>=<version>

Replace <version> with the specific version you want to install.

After installing a new package, you should update the environment.yml file to include the new package and its version. You can do this by running the following command:

conda env export --name myenv > environment.yml

This will generate a new environment.yml file that includes all the installed packages and their versions in the specified Conda environment.

Removing Dependencies

To remove a dependency from your project, you can use the following command:

conda remove <package-name>

Replace <package-name> with the name of the package you want to uninstall. If you want to uninstall a specific version of the package, you can use the following command:

conda remove <package-name>=<version>

After removing a package, you should update the environment.yml file to remove the package and its version. You can do this by running the same command to export the environment as before:

conda env export --name myenv > environment.yml

This will generate a new environment.yml file that includes all the remaining installed packages and their versions in the specified Conda environment.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

  • List any credits or acknowledgements here.

Note: Please make sure that the packages listed in the requirements.txt file are compatible with Python 3.10 before running the setup.sh file.

ai-starter-kit's People

Contributors

ashwin27 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.