This project demonstrates a supervised learning workflow using a rideshare dataset. The script performs data loading, preprocessing, model training, and evaluation. Additionally, it integrates with New Relic for performance monitoring.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Install additional dependencies for Parquet support:
pip install pyarrow # or fastparquet
-
Configure New Relic:
- Ensure you have a
newrelic.ini
file with the appropriate configuration, including thelicense_key
.
- Ensure you have a
-
Run the script:
python supervised_learning.py
- New Relic Configuration:
- The script initializes the New Relic agent using the
newrelic.ini
file. Ensure this file is present in the project directory and contains the necessary configuration.
- The script initializes the New Relic agent using the
pandas
scikit-learn
newrelic
ml_performance_monitoring
pyarrow
orfastparquet
(for Parquet file support)
Install all dependencies using:
pip install -r requirements.txt
This project is licensed under the MIT License. See the LICENSE file for details.