Skip to content

Commit

Permalink
Hello World RecBox!
Browse files Browse the repository at this point in the history
- add main.py
  • Loading branch information
hyp1231 committed Jun 24, 2020
1 parent 5a42d68 commit a0d6d7b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from config import Config
from dataset import Dataset
from model import Model
from trainer import Trainer
from evaluator import Evaluator



config = Config()
config.init()


dataset = Dataset(config)
train_data, test_data = dataset.preprocessing()


model = Model(config)
trainer = Trainer(config)
model = trainer.train(model, train_data)
result = trainer.predict(model, test_data)


evaluator = Evaluator(config)
evaluator.evaluate(result, test_data)

0 comments on commit a0d6d7b

Please sign in to comment.