Skip to main content

PineconeUtils is a Python module designed to handle and process data for embedding and indexing using Pinecone, Cohere, and OpenAI services. This utility module makes it easy to load, chunk, prepare, and upsert data into a Pinecone index, making it ideal for applications involving text embedding and retrieval augmented systems(RAG)

Project description

Uber Ride Price Prediction

A web application that predicts the price of an Uber ride based on several factors, such as pickup location, dropoff location, and the number of passengers.

Demo Image

Setup and Installation

  1. Clone the repository to your local machine.
  2. Install the required Python packages by running pip install -r requirements.txt.
  3. Start the FastAPI server by running uvicorn app:app --host 0.0.0.0 --port 9696.

Usage

  1. Open your web browser and navigate to http://localhost:9696.
  2. Fill out the form with the details of your ride.
  3. Click the "Submit" button to get a prediction of the ride price.

Technologies Used

  • FastAPI for the web server.
  • jQuery for handling AJAX requests.
  • Python for the prediction logic.

Future Improvements

  • Improve the accuracy of the prediction model.
  • Add support for more ride types.
  • Improve the user interface.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

UberRidePrediction

A Python module for Uber Ride Prediction

Installation

To install UberRidePrediction, you can use pip:

pip install UberRidePrediction

Usage:

Make Prediction:

from UberRidePrediction import PredictionPipeline
prediction_pipeline = PredictionPipeline()
prediction_pipeline.load_model()

# For example this is your data:

pickup_datetime = '2012-04-21 08:30:00'
pickup_longitude = -73.987130
pickup_latitude = 40.732029
dropoff_longitude = -73.991875
dropoff_latitude = 40.74942
passenger_count = 1
prediction = prediction_pipeline.make_single_prediction(pickup_datetime, pickup_longitude, pickup_latitude, dropoff_longitude, dropoff_latitude, passenger_count)
print(prediction)

Train Model:

from UberRidePrediction import TrainingPipeline

trainer_pipeline = TrainingPipeline()

file_path = 'data.csv'

trainer_pipeline.train_model(file_path)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uberrideprediction-0.0.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

UberRidePrediction-0.0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file uberrideprediction-0.0.1.tar.gz.

File metadata

  • Download URL: uberrideprediction-0.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for uberrideprediction-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7fa228d5cceb934322277acf3eb168f883d0d866850cff120fc244ae00148833
MD5 faf67bfa610e3fd97a6bd27b391753cc
BLAKE2b-256 34b9bbd6769c92ed397986876ceb441abe477719dabe54f7735415553fb6527a

See more details on using hashes here.

File details

Details for the file UberRidePrediction-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for UberRidePrediction-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 834c417974376226a04b9ee389dd5c503ddeb334fe1105c60ea96ca14e3dd535
MD5 319b19c0d7fad3077a3a5471d95e83b9
BLAKE2b-256 e1e2d9641d58ec3d735b88d82a6af5fc290e54a976dd548245fc85c69db88fbd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page