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?

top 7 comments
sorted by: hot top controversial new old
[–] SFDeltas@alien.top 1 points 9 months ago (1 children)

I actually have your model ready for you (takes 11 inputs, minimizes one output, maximizes the other):

def model(a,b,c,d,e,f,g,h,i,j,k):
    return float('-inf'), float('inf')

No library needed!

If you need more help I would encourage you to provide more detail.

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

I'm just looking for ML libraries that can optimize inputs for multiple outputs. The ones I've found thus far seem to require knowledge of some function, but the function is the unknown.

[–] Due-Wall-915@alien.top 1 points 9 months ago (1 children)

Combine and make them one output

[–] 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.

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

output 1 - c*|output 2|

[–] 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.

[–] This-Key3936@alien.top 1 points 9 months ago

Your are fitting model parameters to make input through the model (function) match the output?

Or you have a function where you want to solve for the inputs that min / max the output?