facebook / Ax

Adaptive Experimentation Platform
https://ax.dev
MIT License
2.31k stars 294 forks source link

input data is not standardized (mean = tensor([0.] #2535

Open Fa20 opened 1 week ago

Fa20 commented 1 week ago
<<Input data is not standardized (mean = tensor([0.], dtype=torch.float64), std = tensor([0.], dtype=torch.float64)). Please consider scaling the input to zero mean and unit variance.

C:\Users\anaconda3\Lib\site-packages\botorch\models\utils\assorted.py:202: InputDataWarning:

Input data is not standardized (mean = tensor([0.], dtype=torch.float64), std = tensor([0.], dtype=torch.float64)). Please consider scaling the input to zero mean and unit variance.

second print
C:\Users\anaconda3\Lib\site-packages\botorch\models\utils\assorted.py:202: InputDataWarning:

Input data is not standardized (mean = tensor([0.], dtype=torch.float64), std = tensor([0.], dtype=torch.float64)). Please consider scaling the input to zero mean and unit variance.

another warning ;Encountered a `MultiObjective` without objective thresholds. We will winsorize each objective separately. We strongly recommend specifying the objective thresholds when using multi-objective optimization.
>>

what is the reason for this warning and how can I fix it?

danielcohenlive commented 6 days ago

Hi @Fa20 , I tried your code from the original comment and got a different error that goes away when you add spacing to the parameter constraints (x1 - 1.5*x2 >= 0.0). Can you please provide a full repro?

Fa20 commented 6 days ago

Hi @danielcohenlive 1-which code exactly from original comment do you mean? 2- do you mean that the problem because of the spacing and can be fixed by adding spacing

danielcohenlive commented 6 days ago

1-which code exactly from original comment do you mean?

This is the original code I'm referring to

image

2- do you mean that the problem because of the spacing and can be fixed by adding spacing

When I run that code as is I get "ValueError: could not convert string to float: 'x1-1.5'" If I change "x1-1.5*x2 >= 0.0" to "x1 - 1.5*x2 >= 0.0" I stop getting that when running the above code.

But I don't know how to get the "Input data is not standardized" you're showing. Could you provide a minimal code repro with any private info redacted so I could help you?

Fa20 commented 5 days ago

@danielcohenlive Thank you very much.

based on the tutorial "parameter_constraints should be a list of strings of form "p1 >= p2" or "p1 + p2 <= some_bound"

I'm asking becuase I opend new issue related this point also that the x1 - 1.5*x2 >= 0.0 using service API since in the tutorial written the above statment . I have tried and got an error that it is not allowed to multiply by some constant?

Fa20 commented 5 days ago

@danielcohenlive does this means that in Service API can we insert this cons. "x1 - 1.5*x2 >= 0.0?

danielcohenlive commented 5 days ago

I have tried and got an error that it is not allowed to multiply by some constant?

Could you give a full repro of the error?

Fa20 commented 5 days ago

grafik this what I got but after remove the space I did not see this error again instead since my condition x1-15x2<0 . I wrote like x1-1.5x2<=-0.00001 ? . I will post the error related to the input

Fa20 commented 5 days ago

grafik

danielcohenlive commented 4 days ago

@Fa20 by full repro I mean code that I can copy and paste in a notebook in my own environment without modification that you have verified will result in the error you're describing when I run it.