Join the conversation
![](https://codanics.com/wp-content/uploads/2024/04/IMG_16954467347071342.jpg)
https://www.kaggle.com/muhammadrameez242 , ye meri kaggle ki I'd hai yha par Ap mukamal assignments simple roman urdu mein mill jai gi codes mein
Reply
![](https://codanics.com/wp-content/uploads/2024/04/IMG_20240410_175137-1-scaled.jpg)
The number 42 has gained prominence as a default or commonly used value for random_state due to its association with the novel "The Hitchhiker's Guide to the Galaxy" by Douglas Adams, where it is humorously depicted as the answer to the ultimate question of Life, The Universe, and Everything.
Reply
Using 42 has become a bit of a tradition in programming (inspired by "The Hitchhiker's Guide to the Galaxy" by Douglas Adams) and it's often used as a placeholder value when a specific number isn't critical to the application. By setting random_state to a fixed value we ensure that every time the code run will split the data in the same way to achieve reproducibility in your results. If we don't set a random seed (random_state) different runs of the code result in different training and testing sets which can make it challenging to compare and reproduce results.
Reply
![](https://codanics.com/wp-content/uploads/2023/10/e24e3cc0-f9cd-49cc-9e5e-e7fea619bd42.jpg)
I have done this video with 100% practice.
Reply
![](https://codanics.com/wp-content/uploads/2024/05/My_profile_pic.jpg)
I have done this lecture with 100% practice.
Reply
![](https://codanics.com/wp-content/uploads/2024/02/2.jpg)
In this lecture, discussion about coding for Support Vector Machine (SVM) in Python.
Reply
![](https://codanics.com/wp-content/uploads/2023/10/9dd24f5a-b137-440a-baba-1855925152a0.jpg)
AOA, I learned in this lecture about the ML algorithm of SUPPORT VECTOR MACHINE ( S.V.M ) in PythonSTEPS OF SUPPORT VECTOR MACHINE ( S.V.M )1- Import Libraries
2- Import ML libraries
3- Load the data set of iris
4- Split the data in X and y
5- Split the data in train and test ( set the random_state=42 )
6- Call the model of SVC
7- Train the model
8- Predict
9- Evaluate the model
10- Plot the model and data in confusion matrix
11- Save the model
12- Load the modelALLAH PAK aap ko sahat o aafiat wali lambi umar ata kray aor ap ko dono jahan ki bhalian naseeb farmaey Ameen.
Reply