Browse Source

misc changes

ogert 3 years ago
parent
commit
6e16b28a14
1 changed files with 3 additions and 4 deletions
  1. 3 4
      cdplib/DataExplorer/DataExplorer.py

+ 3 - 4
cdplib/DataExplorer/DataExplorer.py

@@ -118,10 +118,9 @@ class DataExplorer:
                         'Occurs':occurunces,
                         '%_Occurs': occurunces/len_data,
 
-                        'Schrott_Occurs':schrott_occurunces,
-                        '%_Schrott_Occurs': percentage_of_occurances_schrott,
-                        '%_Total_Schrott': schrott_occurunces/total_schrott,
-
+                        prediction_name + '_Occurs':schrott_occurunces,
+                        '%_' + prediction_name + '_Occurs': percentage_of_occurances_schrott,
+                        '%_Total_' + prediction_name: round((schrott_occurunces/total_schrott)*100, 2),
                     }
 
                 counter+=1