ium_07 sacred

This commit is contained in:
Michal Gulczynski 2024-06-11 19:30:31 +02:00
parent ac15483ad1
commit 54c34cd3ad
2 changed files with 3 additions and 6 deletions

View File

@ -8,14 +8,12 @@ from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import LabelEncoder
import pickle
from sacred import Experiment
from sacred.observers import MongoObserver, FileObserver
from sacred.observers import FileStorageObserver, MongoObserver
# Tworzenie eksperymentu
ex = Experiment('464953') # Zastąp '123456' swoim numerem indeksu
ex = Experiment('464953')
# Dodanie obserwatorów
ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@tzietkiewicz.vm.wmi.amu.edu.pl:27017'))
ex.observers.append(FileObserver('my_experiment_logs'))
ex.observers.append(FileStorageObserver('my_experiment_logs'))
def datasets_preparation():
df_1 = pd.read_csv("datasets/spotify_songs.csv")

View File

@ -8,7 +8,6 @@ from sacred.observers import MongoObserver, FileObserver
ex = Experiment('464953_evaluation')
# Dodanie obserwatorów
ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@tzietkiewicz.vm.wmi.amu.edu.pl:27017'))
ex.observers.append(FileObserver('my_experiment_logs'))