diff options
author | Danijel Anđelković <adanijel99@gmail.com> | 2022-05-04 21:38:53 +0200 |
---|---|---|
committer | Danijel Anđelković <adanijel99@gmail.com> | 2022-05-04 21:38:53 +0200 |
commit | f5b097930797f49a97d12c9885def67a22edf02e (patch) | |
tree | 617d4d3bbac117e71ac4b0a18f26347efa91b002 /backend/microservice/api/newmlservice.py | |
parent | 5f45f5daf61359b039a6154c324a6e6452f0b8a9 (diff) |
Promenio ispis korelacione matrice na prave vrednosti.
Diffstat (limited to 'backend/microservice/api/newmlservice.py')
-rw-r--r-- | backend/microservice/api/newmlservice.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/microservice/api/newmlservice.py b/backend/microservice/api/newmlservice.py index f5e5abcc..ad848fd9 100644 --- a/backend/microservice/api/newmlservice.py +++ b/backend/microservice/api/newmlservice.py @@ -130,7 +130,9 @@ def returnColumnsInfo(dataset): #print(NullRows) #print(len(NullRows)) allNullRows=len(NullRows) - return {'columnInfo':dict,'allNullColl':int(allNullCols),'allNullRows':int(allNullRows),'rowCount':int(rowCount),'colCount':int(colCount),'cMatrix':str(np.matrix(cMatrix))} + print(cMatrix.to_json(orient='index')) + #json.loads()['data'] + return {'columnInfo':dict,'allNullColl':int(allNullCols),'allNullRows':int(allNullRows),'rowCount':int(rowCount),'colCount':int(colCount),'cMatrix':json.loads(cMatrix.to_json(orient='split'))['data']} @dataclass class TrainingResultClassification: |