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.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now