Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
leandro-driguez committed Dec 22, 2022
1 parent df68588 commit 436ebc0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
3 changes: 0 additions & 3 deletions src/models/OurKmeans.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from cProfile import label
from sklearn.cluster import KMeans
from sympy import centroid
from cmath import sqrt

class OurKmeans():
Expand Down
2 changes: 0 additions & 2 deletions src/models/kmeans_based_model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from sqlite3 import SQLITE_CREATE_TRIGGER
from unittest import result
from sklearn.cluster import KMeans
from models.OurKmeans import OurKmeans
from models.dict import Dict
Expand Down
3 changes: 2 additions & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ unidecode
ir_datasets
dictdatabase
typing
scikit-learn
scikit-learn
matplotlib
19 changes: 0 additions & 19 deletions src/test/plots_evaluation_meassures.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
from turtle import mode
from numpy import *
import math
import matplotlib.pyplot as plt
from sympy import im
import sys
import dictdatabase as ddb

# t = linspace(0, 2*math.pi, 400)
# a = sin(t)
# b = cos(t)
# c = a + b

# plt.plot(t, a, 'r') # plotting t, a separately
# plt.plot(t, b, 'b') # plotting t, b separately
# plt.plot(t, c, 'g') # plotting t, c separately
# plt.show()

import numpy as np
import matplotlib
import json
import matplotlib.pyplot as plt
import os


Expand Down

0 comments on commit 436ebc0

Please sign in to comment.