Day: April 16, 2021

How to do feature selection in Python using Scikit-Learn

(How to do feature selection in Python using Scikit-Learn) In this Learn through Codes example, you will learn How to do feature selection in Python using Scikit-Learn.      Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & Image …

How to prepare dataset for machine learning in Python using Scikit-Learn

(How to prepare dataset for machine learning in Python using Scikit-Learn) In this Learn through Codes example, you will learn How to prepare dataset for machine learning in Python using Scikit-Learn.       Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular …

How to Visualize Machine Learning Data in Python using Pandas

(How to Visualize Machine Learning Data in Python using Pandas) In this Learn through Codes example, you will learn How to Visualize Machine Learning Data in Python using Pandas.  Visualize_Machine_Learning_Data_in_Python_using_Pandas Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & …

Pandas Example – Write a Pandas program to create a monthly time period and display the list of names in the current local scope

(Python Example for Beginners)   Write a Pandas program to create a monthly time period and display the list of names in the current local scope. Sample Solution: Python Code : import pandas as pd mtp = pd.Period(‘2021-11′,’M’) print(“Monthly time perid: “,mtp) print(“nList of names in the current local scope:”) print(dir(mtp)) Sample Output: Monthly time …

Pandas Example – Write a Pandas program to generate holidays between two dates using the US federal holiday calendar

(Python Example for Beginners)   Write a Pandas program to generate holidays between two dates using the US federal holiday calendar.   Sample Solution: Python Code : import pandas as pd from pandas.tseries.holiday import * sdt = datetime(2021, 1, 1) edt = datetime(2030, 12, 31) print(“Holidays between 2021-01-01 and 2030-12-31 using the US federal holiday …

Simple Linear Regression in Python using Tensorflow

(Simple Linear Regression in Python using Tensorflow) In this Learn through Codes example, you will learn How to tune Parameters in Python using scikit learn.  Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & Image Data Analytics as well …

Pandas Example – Write a Pandas program to calculate one, two, three business day(s) from a specified date

(Python Example for Beginners)   Write a Pandas program to calculate one, two, three business day(s) from a specified date. Also find the next business month end from a specific date.   Sample Solution: Python Code : import pandas as pd from pandas.tseries.offsets import * import datetime from datetime import datetime, date dt = datetime(2020, …

Random Search Parameter Tuning in Python using scikit-learn

(Random Search Parameter Tuning in Python using scikit-learn) # import python packages import numpy as np from scipy.stats import uniform as sp_rand from sklearn import datasets from sklearn.linear_model import Ridge from sklearn.model_selection import RandomizedSearchCV # load the diabetes datasets dataset = datasets.load_diabetes() # prepare a uniform distribution to sample for the alpha parameter param_grid = …