File size: 414 Bytes
10a5b65
 
96c4203
410b92f
96c4203
 
 
904cf68
96c4203
410b92f
96c4203
 
 
10a5b65
 
96c4203
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)
    with dagshub.dagshub_logger() as logger:
        logger.log_metrics(results)
    return results