Follow the steps below to set up and run the project on your local machine.
- Python 3.8 or later
- PostgreSQL
- pip (Python package installer)
git clone https://github.com/eraybd/cnc-project.git
cd cnc-project
pip install -r requirements.txt
- Create database named as "anomaly_graph" (if a change is made, it must also be changed in the code as well)
- Change the relevant part in the “config.py” according to your PostgreSQL setup
SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@localhost/anomaly_graph'
python run.py
- On the home page, select the data source type and configure the number of rows and columns for displaying graphs.
- Choose the X and Y axes from the dropdown menus.
- Select the type of graph you want to generate (scatter, bar, line, or histogram).
- Click "Grafiği Göster" (Show the Graph) to generate the graph.
- Use the "Sıfırla" (Reset) button to clear the generated graphs.
- The "Anomaly Tablosu" (Anomaly Table) section displays data from the database where anomalies are detected.
- The table can be sorted by clicking on the column headers.
- In the "Feature Seçimi" (Feature Selection) section, select the features you want to compare between train and test datasets.
- The graphs are updated dynamically based on the selected features and month.
- In the "Actual ve Prediction Değerleri" (Actual and Prediction Values) section, select features, model, and month to compare the actual vs. predicted data.
- The graphs update automatically based on your selections.