ium_07 sacred
This commit is contained in:
parent
ac15483ad1
commit
54c34cd3ad
@ -8,14 +8,12 @@ from sklearn.preprocessing import StandardScaler
|
|||||||
from sklearn.preprocessing import LabelEncoder
|
from sklearn.preprocessing import LabelEncoder
|
||||||
import pickle
|
import pickle
|
||||||
from sacred import Experiment
|
from sacred import Experiment
|
||||||
from sacred.observers import MongoObserver, FileObserver
|
from sacred.observers import FileStorageObserver, MongoObserver
|
||||||
|
|
||||||
# Tworzenie eksperymentu
|
ex = Experiment('464953')
|
||||||
ex = Experiment('464953') # Zastąp '123456' swoim numerem indeksu
|
|
||||||
|
|
||||||
# Dodanie obserwatorów
|
|
||||||
ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@tzietkiewicz.vm.wmi.amu.edu.pl:27017'))
|
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():
|
def datasets_preparation():
|
||||||
df_1 = pd.read_csv("datasets/spotify_songs.csv")
|
df_1 = pd.read_csv("datasets/spotify_songs.csv")
|
||||||
|
@ -8,7 +8,6 @@ from sacred.observers import MongoObserver, FileObserver
|
|||||||
|
|
||||||
ex = Experiment('464953_evaluation')
|
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(MongoObserver(url='mongodb://admin:IUM_2021@tzietkiewicz.vm.wmi.amu.edu.pl:27017'))
|
||||||
ex.observers.append(FileObserver('my_experiment_logs'))
|
ex.observers.append(FileObserver('my_experiment_logs'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user