Is there anyway to retrieve a version rid of a modelinput in a transform? You need the version rid to make a metric set…the overall rid doesn’t allow it to connect to modelling objectives…
Hi,
Right now, there is no way to dynamically retrieve the version from a model input in Code Repositories. We’ve added this functionality in version 0.1602.0 of palantir_models, so you will need to upgrade your repository’s palantir_models dependency to at least this version to be able to use it. Here is the syntax to access it:
from transforms.api import transform, Input
from palantir_models.transforms import ModelInput
@transform(
training_data_input=Input(""),
model_input=ModelInput(""),
)
def compute(training_data_input, model_input):
model_version_rid = model_input.model_version_rid
This version should be available in a few days in your environment - you can check which maximum version is available in your environment from the packages sidebar in Code Repositories.
Thanks,
Julien
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.