# Project export: San Jose Weather Predictor

This document was generated by HackStack to give an AI agent context about a hackathon project. Sections are labeled with their provenance; content marked as truncated was cut to keep this document small.

## Project metadata

- Hackathon: Cal Hacks 10.0
- Tagline: Predicts high and low temperatures (°F) and precipitation (inches) for future dates in San Jose, CA.
- Devpost: https://devpost.com/software/san-jose-weather-predictor
- GitHub: not linked
- Team: contributor stats unavailable

## Devpost submission (written by the team)

### Inspiration

Since we care strongly about the environment and the climate change crisis, we wanted a more efficient way to predict the weather based on previous years and ongoing trends.

### What it does

It predicts the temperature of the inputted date (from the user. It can predict the temperature (min, max), and precipitation (inches) for future dates.

### How we built it

Our model uses a RandomForestRegressor with automatically created decision trees to parse the data, then we used gridsearch_cv to optimize the RandomForestRegressor model in order to minimize error. We are returning the result of the best model using best_estimator_.

### Challenges we ran into

Initially, we used linear regression, but its accuracy score was very low, because our data had a convex shape. We tried RandomForestRegressor, which gave us a very low error for all of our tests. Although running our model took a long time (since our data was almost 7000 lines), our predictions were successful.

### Accomplishments we're proud of

We were able to create a successful ML model that could predict weather for future dates, and our predictions made sense in the context of previous dates.

### What we learned

We learned how to use the RandomForestRegressor as our ML model to make predictions based on given data, and gridsearch_cv to optimize our model.

### What's next

We could also add data and make predictions for other weather patterns, such as wind speed and direction, humidity, air quality, and visibility.

## README (from the GitHub repository)

No README available.

## Detected evidence (automated analysis)

No repository was indexed for this project. Claimed technologies below could not be checked against code.
- HTML (language) — claimed on Devpost, not found in the code
- Python (language) — claimed on Devpost, not found in the code

## Codebase structure

No repository index available.

## Key source files

No repository index available; no source files included.