Get the size (bytes) of a Model

benarl
Level 2
Get the size (bytes) of a Model

Hello,

I'm training a model and i'm wondering what is its total size (on disk in bytes).
Where can i find the information please ?
I'm asking this because i work on a remote instance of DSS, so i don't have access to the local files.

Also is there a way to export just a version of  a model trained instead of the whole project ?

Thank you

0 Kudos
1 Reply
dgraham
Dataiker

Hi @benarl ,

The most accurate way to get the size of a trained model is to get the size of the saved model version file ("clf.pkl") on disk in the DSS data directory (i.e. "./saved_models/PROJECT_KEY/MODEL_ID/versions/VERSION_ID"). You could export a scoring jar/pmml of the trained model, provided that you have the license to do so, as described in the below documentation article.

https://doc.dataiku.com/dss/latest/machine-learning/models-export.html#export-a-java-class-jar-for-a...

0 Kudos