メインコンテンツへスキップ

add_predictor_constr in Gurobi modeling

回答済み

コメント

2件のコメント

  • 正式なコメント
    Pierre Bonami
    • Gurobi Staff

    Hi Florencia,

    The issue is that there is no implementation for adding the logarithmic transformation in Gurobi ML. Since the transformation is applied to Gurobi variables in the model, one would need to implement a class that performs it.

    Then the error was not very graceful that I will fix.

    If you really want to use a logarithmic transformer you would need to implement a small class similar to the ones in https://github.com/Gurobi/gurobi-machinelearning/blob/main/src/gurobi_ml/sklearn/preprocessing.py.

    I hope this helps. Best regards,

    Pierre

  • Riley Clement
    • Gurobi Staff

    Hi Florencia,

    I suspect this may be a bug in gurobi-machinelearning.

    I have created a Github Issue for it.

    - Riley

     

    0

サインインしてコメントを残してください。