Hi team! It's possible to load from the catalog th...
# questions
c
Hi team! It's possible to load from the catalog the parameters of a dataset?
Copy code
boat_data:
  type: pandas.CSVDataSet
  filepath: data/01_raw/ships/boat_data.csv
Something like this
catalog.load("boat_data.filepath")
?
j
hi @Camilo L贸pez! there's a private method for that:
Copy code
catalog._get_dataset("boat_data")._filepath
may I ask, why do you need it?
c
I'm using the kedro mlflow hook, and in order to promote models to from one stage to another i need the model artifact parameter and stage version
馃憖 1
Oh maybe i was too literal, what if i need to access to another kind of parameter (not the filepath)
j
of course, you can stop at
catalog._get_dataset("boat_data")
to retrieve the dataset object, and access any of its properties
a
Could you use the
config_loader
?
n
If you need parameters that is provided in
catalog.yml
, use
config_loader["catalog"]
. If you need to access the attribute of a
DataSet
class, use
catalog.__get__dataset(<name>)
K 1