cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Cannot Reproduce Result scikit-learn random forest

umair
New Contributor

I'm running some machine learning experiments in databricks. For random forest algorithm when i restart the cluster, each time the training output is changes even though random state is set. Anyone has any clue about this issue?

Note : I tried the same algorithm with same code in anacoda enviroment in my local machine, there is no different in the result even though I restart the machine.

1 ACCEPTED SOLUTION

Accepted Solutions

-werners-
Esteemed Contributor III

RF is non-deterministic by itยดs nature.

However as you mentioned you can control this by using random_state.

This will guarantee a deterministic result ON A CERTAIN SYSTEM, but not necessarily over systems.

SO has a topic about this, check it out, very interesting.

View solution in original post

1 REPLY 1

-werners-
Esteemed Contributor III

RF is non-deterministic by itยดs nature.

However as you mentioned you can control this by using random_state.

This will guarantee a deterministic result ON A CERTAIN SYSTEM, but not necessarily over systems.

SO has a topic about this, check it out, very interesting.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group