File size: 430 Bytes
3d2162d
350cc95
ed82405
28a91ce
2fbc388
725b6f2
83f1fd9
bb18a30
f3aa86c
71b3238
9008f44
214f2f3
3e6c151
c398d56
47e276a
4c54605
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import dagshub

from src.models.model import Summarization
import pandas as pd

def evaluate_model():
    """
    Evaluate model using rouge measure
    """
    test_df =  pd.load_csv('../../data/processed/test.csv')
    model = Summarization()
    model.load_model()
    results = model.evaluate(test_df=test_df,metrics="rouge")
    with dagshub.dagshub_logger() as logger:
        logger.log_metrics(results)
    return results