Skip to main content
Aditya Kotiyal
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
Nov 9, 2023 9:35 AM UTC
Solved

ML model and training it

Hi Experts,

 

Few queries:

 

  1. Can I create a ML model directly using CDF functions? - I believe we can.
  2. If yes, how can I retrain a model without using any external AI platform? Can I use workflow orchestration to retrain a model with new data?

 

Thanks,

Aditya

Expert ⭐️⭐️⭐️⭐️
Feb 22, 2024 6:41 PM UTC

@Aditya Kotiyal ,

I worked with SWN team on this.  In short

  • Build/Train model externally → Push to CDF as a File
  • Within a Cognite Function, load the ML model and call it
  • Retraining can be via Cognite Function as well (within CDF Function limitations: memory, runtime) → push back to CDF as a File

Hope this helps,
-Jason

8 replies

Expert ⭐️⭐️⭐️⭐️
Nov 9, 2023 9:45 AM UTC

@Aditya Kotiyal ,

ML models are routinely saved and fetched to/from CDF files in Functions to enable end to end use cases..  Whether CDF Functions are appropriate to ‘train’ and ‘retrain’ depends on the use case as CDF Functions have finite resource limits (memory, cpu and runtime).  

-Jason

fyi @Anvar Akhiiartdinov @Andris Piebalgs @Chad Hutchison Can you advise further?

Aditya Kotiyal
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
Nov 10, 2023 3:30 PM UTC

Thanks @Jason Dressel .

Possible to share those resource limits?

Aditya Kotiyal
Jørgen Lund
Expert ⭐️⭐️⭐️⭐️
Product Manager
Nov 13, 2023 6:15 AM UTC

@Aditya Kotiyal Cognite Functions resource limits can be found here.

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Nov 22, 2023 7:08 AM UTC

Hi @Aditya Kotiyal,

We are following up to see whether you're satisfied with the responses you've received.

If you found the responses offered by our community members to be instructive and helpful, we kindly request that you consider marking the most helpful response as the "Best Answer."

Best regards,
Dilini 

 

Aditya Kotiyal
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
Nov 22, 2023 7:10 AM UTC

Hi @Dilini Fernando ,

 

I was expecting other tagged by Jorgen to reply.

It will be good to understand how much CDF can be leveraged for AI/ML kind of workflows.

Aditya Kotiyal
Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Nov 30, 2023 8:31 AM UTC

Hi@Anvar Akhiiartdinov @Andris Piebalgs @Chad Hutchison

Please let us know your thoughts on this.

Br,

Dilini

Expert ⭐️⭐️⭐️⭐️
Feb 22, 2024 6:41 PM UTC

@Aditya Kotiyal ,

I worked with SWN team on this.  In short

  • Build/Train model externally → Push to CDF as a File
  • Within a Cognite Function, load the ML model and call it
  • Retraining can be via Cognite Function as well (within CDF Function limitations: memory, runtime) → push back to CDF as a File

Hope this helps,
-Jason

Aditya Kotiyal
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
Feb 27, 2024 8:20 PM UTC

Thanks @Jason Dressel 

Aditya Kotiyal