python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to minimize the number of values that are not 0?
If my output is a tensor of values:
torch.tensor([0.0, 1.2, 0.1, 0.01, 2.3, 99.2, -21.2])
I'm trying to create a differentiable loss function that will minimize the number of values that are not 0. T...

Penguin
Votes: 0
Answers: 0
How to I create a tensor of euclidean distances from the maxval in an image array using TensorFlow?
I'm trying to write a custom loss function that inputs a batch of multichannel images and outputs a loss based on how well-clustered the pixel values are around the max value of each image on average....
CptKakashki
Votes: 0
Answers: 0
Scikit learn GridSearchCV with pipeline with custom transformer
I'm trying to perform a GridSearchCV on a pipeline with a custom transformer. The transformer enriches the features "year" and "odometer" polynomially and one hot encodes the rest ...
Davis Stöwer
Votes: 0
Answers: 1
ImportError: cannot import name 'SequentialFeatureSelector'
from sklearn.feature_selection import SequentialFeatureSelector
When I import SequentialFeatureSelector from sklearn.feature_selection I get an import error
ImportError: cannot import name 'Sequenti...
Pruthvi Amin
Votes: 0
Answers: 1