this post was submitted on 29 Nov 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 11 months ago
MODERATORS
 

I have training data for 11 inputs and 2 outputs. Is there a library that can optimize the 11 inputs to minimize 1 output and maximize 1 output?

you are viewing a single comment's thread
view the rest of the comments
[–] bsiegelwax@alien.top 1 points 9 months ago (2 children)

The outputs are distinct, so I can't combine them. One has to be as close to 0 as possible and the other has to be as high as possible, and I need to optimize the inputs to do that.

[–] literum@alien.top 1 points 9 months ago

How about a custom loss function so you have something like loss=y1^2 -y2 for the two outputs? You can use PyTorch and optimize directly for the inputs.

[–] physicianmusician@alien.top 1 points 9 months ago

output 1 - c*|output 2|