IBM / unitxt

🦄 Unitxt: a python library for getting data fired up and set for training and evaluation
https://www.unitxt.ai
Apache License 2.0
161 stars 45 forks source link

get_from_catalog does not return a fresh copy of the catalog object #1364

Open yoavkatz opened 1 week ago

yoavkatz commented 1 week ago

get_from_catalog does not return a fresh copy of the catalog object

   card = get_from_catalog("cards.banking77")
   card.task="...." 
   card = get_from_catalog("cards.banking77")
   /// same card object is returned from cache, and is the modified version

fetch_artifact returns a new value every time:

    card , _ = fetch_artifact("cards.banking77")
    card.task="...." 
     card , _ = fetch_artifact("cards.banking77")
     /// card is created a new, with the original task
elronbandel commented 1 week ago

A not fresh copy meaning it is effectively a singleton? not sure I understand