1. # Grid Search Hyperparameter Optimization in Scikit-learn with GridSearchCV

## Problem

Choose a set of optimal hyperparameters for a machine learning algorithm in scikit-learn by using grid search

## Today I Learnt

When training a machine learning model, model performance is based on the model hyperparameters specified. A hyperparameter is a parameter whose value is used to control the learning process …

2. # Conditional Colors in Plotly Tables

## Problem

Generate a data table in Plotly that has the following features:

1. Alternating cell and line colors for odd/even rows
2. Unique cell color on first column
3. For third column onwards, color cells using two different colors based on two levels of upper-bound/lower-bound conditions

3. # Dataframe manipulation sequence - GroupBy Agg, Melt, Unstack

## Problem

From a Pandas DataFrame, massage the DataFrame into a format where order Count and Total Amount could be determined for each Vendor and each Vendor-Buyer combination.

:::python

```>> df = pd.DataFrame(data=
{'Vendor': ['A', 'A', 'A', 'B', 'B', 'C', 'C', 'C', 'C',
'D', 'D', 'E', 'E', 'E', 'E', 'E'],
4. # MultiIndex.to_frame()

## Problem

From a MultiIndex dataframe, determine the total number of elements in the Buyer column for each Vendor.

## What I did

Let's say we have the following DataFrame:

:::python

```>> df = pd.DataFrame(data=
{'Vendor': ['A', 'A', 'B', 'C', 'C', 'C',
'D', 'D', 'E', 'E', 'F', 'G', 'G'],