Beispiel #1
0
 def __eq__(self, rhs):
     return self.data_source == rhs.data_source \
            and self.freq == rhs.freq \
            and self.universe == rhs.universe \
            and self.batch == rhs.batch \
            and list_eq(self.neutralized_risk, rhs.neutralized_risk) \
            and self.risk_model == rhs.risk_model \
            and list_eq(self.pre_process, rhs.pre_process) \
            and list_eq(self.post_process, rhs.post_process) \
            and self.warm_start == rhs.warm_start
Beispiel #2
0
 def __eq__(self, rhs):
     return self.name == rhs.name \
            and list_eq(self.base_universe, rhs.base_universe) \
            and list_eq(self.exclude_universe, rhs.exclude_universe) \
            and list_eq(self.special_codes, rhs.special_codes) \
            and str(self.filter_cond) == str(rhs.filter_cond)
Beispiel #3
0
 def __eq__(self, rhs):
     return self.model_encode() == rhs.model_encode() \
            and self.trained_time == rhs.trained_time \
            and list_eq(self.features, rhs.features) \
            and encode(self.formulas) == encode(rhs.formulas) \
            and encode(self.fit_target) == encode(rhs.fit_target)