This may be a naive question, still relatively new to the ML world, and definitely not strong with the math, but, I’m wondering if I can change the influence of a one hot encoded input by adjusting the values to be less than one? I’m working in JS and I’m trying to accomplish what, I believe, sampleWeight is supposed to do. Unfortunately, it doesn’t look like sampleWeight has been implemented, see thread, http://discuss.ai.google.dev/t/sampleweight-not-supported-in-tfjs/8611/5.
As an example, assuming ReLU hidden layers and a softmax output layer, say I’ve got an input season; winter, spring, summer, and fall, that’s represented as one hot vectors:
[ 1, 0, 0, 0 ] - Winter
[ 0, 1, 0, 0 ] - Spring
[ 0, 0, 1, 0 ] - Summer
[ 0, 0, 0, 1 ] - Fall
If I wanted a particular input to have less influence on training the model can I simply adjust the value?
[ 0, 0.5, 0, 0 ]
Is this going to have unintended consequences?
Looks like classWeight does something similar as well but, I don’t want the weights to be specific to the class, instead, I want to weight a particular set of inputs.
Thanks!
edit: looks like classWeight affects the output, not the input? Not sure it’s quite the same.