Skip to content

Commit

Permalink
fix: Add print to leverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilismin committed Jun 11, 2024
1 parent 0e0a220 commit d76cdf7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions jaqpotpy/doa/doa.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,19 @@ def calculate_threshold(self):

def calculate_matrix(self):
x_T = self._data.transpose()
# for s in self._data:
# print(s)
# if isinstance(s, str):
# print("STRING")
x_out = x_T.dot(self._data)
self._doa_matrix = np.linalg.pinv(x_out)
# self.doa_matrix = x_out #pd.DataFrame(np.linalg.pinv(x_out.values), x_out.columns, x_out.index)

def fit(self, X: np.array):
# self._scaler.fit(X)
# self._data = self._scaler.transform(X)
self._data = X
self.calculate_matrix()
self.calculate_threshold()
print(self._a)

def predict(self, new_data: np.array) -> Iterable[Any]:
doaAll = []
self._doa = []
self._in = []
# new_data = self._scaler.transform(new_data)
for nd in new_data:
d1 = np.dot(nd, self.doa_matrix)
ndt = np.transpose(nd)
Expand Down

0 comments on commit d76cdf7

Please sign in to comment.