nshaud / DeepHyperX

Deep learning toolbox based on PyTorch for hyperspectral data classification.
Other
439 stars 122 forks source link

Inverse Median Frequency Weights functioning? #12

Closed Oscared closed 4 years ago

Oscared commented 4 years ago

Hi!

I was using this framework (thank you), but I cannot understand if the inverse median frequency weights are called at all? For me it seems they are created after constructing the loss function and thus never passed anywhere. Is this assumption wrong on my part? Where do they come into play? I assumed the weights would have been passed to the get_model function through the hyperparameters, then used to construct the loss function and not be overwritten by the new initialization of the weight vector. Thank you!

Ayush-iitkgp commented 4 years ago

I can confirm the same. My data has a huge class imbalance and the model performances are very poor.