Skip to content

Commit

Permalink
Update wmvfts.py - class_weights
Browse files Browse the repository at this point in the history
  • Loading branch information
petroniocandido committed May 26, 2023
1 parent 560dcfa commit afc9b21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyFTS/models/multivariate/wmvfts.py
Expand Up @@ -82,6 +82,8 @@ def generate_flrg(self, flrs):
self.flrgs[flrg.get_key()].append_rhs(flr.RHS)

def classify(self, data, **kwargs):
if len(self.class_weights) == 0:
self.class_weights = {k : 1.0 for k in self.target_variable.partitioner.sets.keys()}
ret = []
ndata = self.apply_transformations(data)
activation = kwargs.get('activation', Activations.scale)
Expand Down

0 comments on commit afc9b21

Please sign in to comment.