File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ services:
3838 - ./grafana/dashboards:/etc/grafana/dashboards
3939 - ./grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/tweet_dashboards.yaml
4040 - ./grafana/datasources:/etc/grafana/provisioning/datasources
41- - ./grafana/alerting:/etc/grafana/alerting
42- - ./grafana/alertings.yaml:/etc/grafana/provisioning/alerting/tweet_alerts.yaml
41+ - ./grafana/alerting:/etc/grafana/provisioning/alerting
4342 environment :
4443 - GF_SECURITY_ADMIN_PASSWORD=admin
4544 - GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/dashboards/tweet_dashboard.json
Original file line number Diff line number Diff line change 1- # apiVersion: 1
1+ apiVersion : 1
22
3- # groups:
4- # - name: alert-rules
5- # folder: Tweet Alerts
6- # orgId: 1
7- # interval: 30s
8- # rules:
9- # - file: /etc/grafana/alerting/rules.json
3+ groups :
4+ - name : alert-rules
5+ folder : Tweet Alerts
6+ orgId : 1
7+ interval : 30s
8+ rules :
9+ - file : /etc/grafana/alerting/rules.json
Original file line number Diff line number Diff line change 22sudo apt-get install gcc make -y
33sudo apt install build-essential linux-headers-$( uname -r)
44wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
5- sudo sh ./cuda_11.8.0_520.61.05_linux.run --silent --driver --toolkit
5+ sudo sh ./cuda_11.8.0_520.61.05_linux.run --silent --driver --toolkit
6+ conda env create -n ia python=3.11.8
7+ conda activate ia
8+ pip install -r requirements.txt
9+ # Driver 11.8 torch compatibilities
10+ conda install pytorch==2.2.2 torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
Original file line number Diff line number Diff line change 11## Import lightgbm avoiding segfault error, protection against segfault
22#import lightgbm as lgb
33from src .ml import LightGBMModel , load_data , LSTMModel
4+ import logging
45
56df = load_data ('../data/training.1600000.processed.noemoticon.csv' )
67#df = df.sample(frac=1, random_state=42)
You can’t perform that action at this time.
0 commit comments