Commit e0ffd75f authored by Jan Rudolf's avatar Jan Rudolf
parents 366a3f19 c7c99f20
......@@ -61,7 +61,7 @@ class DTWClassifierFactory:
@staticmethod
def create():
cls = DTWClassifier(mode=DTWClassifier.MODE_MEAN, range_fn=itakura_range,
dist_fn=lambda x, y: minkowski(x, y, 0), n_compared_songs=15)
dist_fn=lambda x, y: minkowski(x, y, 1), n_compared_songs=15)
df = pd.read_csv('preprocessed_nmfcc_13/data.csv')
cls.fit(df['file'], df['label'])
return cls
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment