ddi-fw 0.0.199__py3-none-any.whl → 0.0.200__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ddi_fw/ml/ml_helper.py +14 -12
 - {ddi_fw-0.0.199.dist-info → ddi_fw-0.0.200.dist-info}/METADATA +1 -1
 - {ddi_fw-0.0.199.dist-info → ddi_fw-0.0.200.dist-info}/RECORD +5 -5
 - {ddi_fw-0.0.199.dist-info → ddi_fw-0.0.200.dist-info}/WHEEL +0 -0
 - {ddi_fw-0.0.199.dist-info → ddi_fw-0.0.200.dist-info}/top_level.txt +0 -0
 
    
        ddi_fw/ml/ml_helper.py
    CHANGED
    
    | 
         @@ -99,23 +99,25 @@ class MultiModalRunner: 
     | 
|
| 
       99 
99 
     | 
    
         
             
                                    self.train_idx_arr, self.val_idx_arr, train_data, train_label, test_data, test_label)
         
     | 
| 
       100 
100 
     | 
    
         
             
                            else:
         
     | 
| 
       101 
101 
     | 
    
         
             
                                raise Exception("check configurations")
         
     | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
       103 
     | 
    
         
            -
                             
     | 
| 
       104 
     | 
    
         
            -
                            name =  
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
       106 
     | 
    
         
            -
             
     | 
| 
       107 
     | 
    
         
            -
             
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
             
     | 
| 
      
 102 
     | 
    
         
            +
                            logs, metrics, prediction = single_modal.fit_and_evaluate()
         
     | 
| 
      
 103 
     | 
    
         
            +
                            self.result.add_metric(name, metrics)
         
     | 
| 
      
 104 
     | 
    
         
            +
                            single_results[name] = prediction
         
     | 
| 
      
 105 
     | 
    
         
            +
                    else: # TODO default model maybe?
         
     | 
| 
      
 106 
     | 
    
         
            +
                        print("Default model will be used")
         
     | 
| 
      
 107 
     | 
    
         
            +
                        name = self.default_model.get('name')
         
     | 
| 
      
 108 
     | 
    
         
            +
                        # input_type = m.get('input_type')
         
     | 
| 
      
 109 
     | 
    
         
            +
                        model_type = get_import(self.default_model.get("model_type"))
         
     | 
| 
      
 110 
     | 
    
         
            +
                        kwargs = self.default_model.get('params')
         
     | 
| 
      
 111 
     | 
    
         
            +
                        for item in self.items:
         
     | 
| 
      
 112 
     | 
    
         
            +
                            T = self.__create_model(self.library)
         
     | 
| 
       110 
113 
     | 
    
         
             
                            single_modal = T(self.date, name, model_type,
         
     | 
| 
       111 
114 
     | 
    
         
             
                                            use_mlflow=self.use_mlflow,  **kwargs)
         
     | 
| 
       112 
     | 
    
         
            -
                            item = self.items[0]
         
     | 
| 
       113 
115 
     | 
    
         
             
                            single_modal.set_data(
         
     | 
| 
       114 
116 
     | 
    
         
             
                                    self.train_idx_arr, self.val_idx_arr, item[1], item[2], item[3], item[4])
         
     | 
| 
       115 
117 
     | 
    
         | 
| 
       116 
     | 
    
         
            -
             
     | 
| 
       117 
     | 
    
         
            -
             
     | 
| 
       118 
     | 
    
         
            -
             
     | 
| 
      
 118 
     | 
    
         
            +
                            logs, metrics, prediction = single_modal.fit_and_evaluate()
         
     | 
| 
      
 119 
     | 
    
         
            +
                            self.result.add_metric(name, metrics)
         
     | 
| 
      
 120 
     | 
    
         
            +
                            single_results[name] = prediction
         
     | 
| 
       119 
121 
     | 
    
         | 
| 
       120 
122 
     | 
    
         
             
                def predict(self, combinations: list = [], generate_combinations=False):
         
     | 
| 
       121 
123 
     | 
    
         
             
                    self.prefix = utils.utc_time_as_string()
         
     | 
| 
         @@ -74,7 +74,7 @@ ddi_fw/langchain/sentence_splitter.py,sha256=h_bYElx4Ud1mwDNJfL7mUwvgadwKX3GKlSz 
     | 
|
| 
       74 
74 
     | 
    
         
             
            ddi_fw/langchain/storage.py,sha256=OizKyWm74Js7T6Q9kez-ulUoBGzIMFo4R46h4kjUyIM,11200
         
     | 
| 
       75 
75 
     | 
    
         
             
            ddi_fw/ml/__init__.py,sha256=tIxiW0g6q1VsmDYVXR_ovvHQR3SCir8g2bKxx_CrS7s,221
         
     | 
| 
       76 
76 
     | 
    
         
             
            ddi_fw/ml/evaluation_helper.py,sha256=2-7CLSgGTqLEk4HkgCVIOt-GxfLAn6SBozJghAtHb5M,11581
         
     | 
| 
       77 
     | 
    
         
            -
            ddi_fw/ml/ml_helper.py,sha256= 
     | 
| 
      
 77 
     | 
    
         
            +
            ddi_fw/ml/ml_helper.py,sha256=IFLpMa5oxwnhRXHNNYCITyaXPp7Rrid9bpsjp_Ss5SQ,7725
         
     | 
| 
       78 
78 
     | 
    
         
             
            ddi_fw/ml/model_wrapper.py,sha256=kabPXuo7S8tGkp9a00V04n4rXDmv7dD8wYGMjotISRc,1050
         
     | 
| 
       79 
79 
     | 
    
         
             
            ddi_fw/ml/pytorch_wrapper.py,sha256=pe6UsjP2XeTgLxDnIUiodoyhJTGCxV27wD4Cjxysu2Q,8553
         
     | 
| 
       80 
80 
     | 
    
         
             
            ddi_fw/ml/tensorflow_wrapper.py,sha256=lNJvg3odqMKmILecOMdcOCAOrwzWZDzxB0DWGcYWsPg,12952
         
     | 
| 
         @@ -99,7 +99,7 @@ ddi_fw/utils/zip_helper.py,sha256=YRZA4tKZVBJwGQM0_WK6L-y5MoqkKoC-nXuuHK6CU9I,55 
     | 
|
| 
       99 
99 
     | 
    
         
             
            ddi_fw/vectorization/__init__.py,sha256=LcJOpLVoLvHPDw9phGFlUQGeNcST_zKV-Oi1Pm5h_nE,110
         
     | 
| 
       100 
100 
     | 
    
         
             
            ddi_fw/vectorization/feature_vector_generation.py,sha256=EBf-XAiwQwr68az91erEYNegfeqssBR29kVgrliIyac,4765
         
     | 
| 
       101 
101 
     | 
    
         
             
            ddi_fw/vectorization/idf_helper.py,sha256=_Gd1dtDSLaw8o-o0JugzSKMt9FpeXewTh4wGEaUd4VQ,2571
         
     | 
| 
       102 
     | 
    
         
            -
            ddi_fw-0.0. 
     | 
| 
       103 
     | 
    
         
            -
            ddi_fw-0.0. 
     | 
| 
       104 
     | 
    
         
            -
            ddi_fw-0.0. 
     | 
| 
       105 
     | 
    
         
            -
            ddi_fw-0.0. 
     | 
| 
      
 102 
     | 
    
         
            +
            ddi_fw-0.0.200.dist-info/METADATA,sha256=IkLebplT9KXZhVHSinJkay9r_ZmHs7n-jVeLpKW_kC4,2542
         
     | 
| 
      
 103 
     | 
    
         
            +
            ddi_fw-0.0.200.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
         
     | 
| 
      
 104 
     | 
    
         
            +
            ddi_fw-0.0.200.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
         
     | 
| 
      
 105 
     | 
    
         
            +
            ddi_fw-0.0.200.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |