Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daveebbelaar/ai-fundamentals
Learn the fundamentals of building AI solutions using Python.
https://github.com/daveebbelaar/ai-fundamentals
ai data python tutorials
Last synced: about 1 month ago
JSON representation
Learn the fundamentals of building AI solutions using Python.
- Host: GitHub
- URL: https://github.com/daveebbelaar/ai-fundamentals
- Owner: daveebbelaar
- License: mit
- Created: 2024-04-11T06:25:43.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T09:05:37.000Z (8 months ago)
- Last Synced: 2024-08-13T07:07:38.943Z (4 months ago)
- Topics: ai, data, python, tutorials
- Language: Python
- Homepage: https://datalumina.com
- Size: 35.2 KB
- Stars: 17
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - daveebbelaar/ai-fundamentals - Learn the fundamentals of building AI solutions using Python. (Python)
README
# AI Fundamentals: Building AI Solutions with Python
This repository is designed to provide you with a foundation in the basic building blocks of creating AI solutions using Python.
## Getting Started
#### 1. Clone the repository
```bash
git clone https://github.com/daveebbelaar/ai-fundamentals.git
```#### 2. Create a Python environment
Python 3.6 or higher using `venv` or `conda`. Using `venv`:
``` bash
cd ai-fundamentals
python3 -m venv env
source env/bin/activate
```Using `conda`:
``` bash
cd ai-fundamentals
conda create -n ai-fundamentals python=3.10
conda activate ai-fundamentals
```#### 3. Install the required dependencies
``` bash
pip install -r requirements.txt
```#### 4. Set up the keys in a .env file
First, create a `.env` file in the root directory of the project. Inside the file, add your OpenAI API key:
```makefile
OPENAI_API_KEY="your_api_key_here"
```Save the file and close it. In your Python script or Jupyter notebook, load the `.env` file using the following code:
```python
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
```By using the right naming convention for the environment variable, you don't have to manually store the key in a separate variable and pass it to the function. The library or package that requires the API key will automatically recognize the `OPENAI_API_KEY` environment variable and use its value.
When needed, you can access the `OPENAI_API_KEY` as an environment variable:
```python
import os
api_key = os.environ['OPENAI_API_KEY']
```## Tutorials
For video tutorials on how to use this repository and run experiments, visit the YouTube channel: [youtube.com/@daveebbelaar](https://www.youtube.com/channel/UCn8ujwUInbJkBhffxqAPBVQ?sub_confirmation=1)