Let us start by simple question. What is Machine Learning? Machine Learning is one of the most popular fields in computer science. Basically machine learning are some computer algorithms that improve automatically with experience. Using these algorithms computers can provide sense to data in much the same way as human beings do. The mail goal of ML algorithms are to extract some kind of pattern from raw data. One of the famous definition of Machine Learning is: A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E. Need of Machine Learning? One of the main question people ask is what is the need of machine learning. Humans being one of the most advanced species in the whole world, we can make decisions and evaluate complex problems, so why do we need machine learning. The Artificial intelligence still being in it developing state, is slowly evo...
In this I did an analysis on poker. I made my own dataset by randomly selecting 7 cards from the dataset. It does not gives the actual results. It is more of a simulation of actual data. I have used jupyter-notebook for this you can use any IDE according to your liking. Start by importing the modules. import pandas as pd import numpy as np import random import time Then I created a function calculate_hand which takes hand as a list and returns a boolean list with the corresponding values [royal_flush, straight_flush, four_of_a_kind, full_house, flush, straight, three_of_a_kind, two_pairs, pair, highcard] . If the hand has three cards of same value three_of_a_kind will be True , also pair will be True because if a hand has three of a kind, it also has a pair. Highcard always return the high card. ALL_CARDS_NUM = {'2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, 'T': 10, 'J': ...