Join the conversation
i learned about svm and how it works and also learn random state why do we change random state
Reply
The Number 42:
Cultural Reference: The number 42 is famously known as "the answer to the ultimate question of life, the universe, and everything" from Douglas Adams' science fiction series The Hitchhiker's Guide to the Galaxy. As a result, many programmers and data scientists use it as a humorous or whimsical choice for a random seed.
No Special Properties :
There’s nothing inherently special about the number 42 itself in terms of randomness or statistical properties. Any integer can serve as a seed. However, using a consistent seed like 42 helps maintain a standard across examples, tutorials, and educational resources.
Reply
I learned about the workings of SVM.
Reply
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
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
I have done this video with 100% practice.
Reply
I have done this lecture with 100% practice.
Reply
In this lecture, discussion about coding for Support Vector Machine (SVM) in Python.
Reply
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