Skip to main content

Posts

Showing posts from December, 2022

Full code for building the ml models

Code for building the machine learning models: Full Code of All Data 1. Write a problem statement 2. Problem Description 3. Import the reuired libraries like ## Import the necessary modules ## To read and manipulate the data/dataframe import os import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt ## For Data Preprocessing from sklearn.impute import SimpleImputer from sklearn.preprocessing import OneHotEncoder, StandardScaler, MinMaxScaler, LabelEncoder ## For Modelling from sklearn.model_selection import train_test_split, GridSearchCV from sklearn.svm import SVC, SVR ## Evaluation metrics from sklearn.metrics import confusion_matrix, classification_report,accuracy_score, f1_score,recall_score 4. Read the dataset  ## Read the dataset data=pd.read_csv("Filename",na_values="?") 5. Check the dimensions of the data like rows and columns ## Check the dimenstions print('Dataset has ...

Python Terminology For Data Science

Interview questions on Python

Python Data Science Interview Questions  If you’re looking to build a career in data science, you already know how important Python will be. The significance of Python data science interview questions at interviews has risen exponentially. After all, it is the most widely used language in data science. Q1. What is Python? -      High level, interpreted & object-oriented scripting language. -     Readable code and large library. -     Works on all operating systems. Q2. What are the Features of Python? -     It's open source language. -     It's an interpreted language that means easy to debug. -     Supports both procedure and object-oriented programming. -     Portable that means which can run on different platforms. Q3. Can you explain how is python interpreted? -    Source Code --> Intermediate language --> Native Language--> Execution Q4. How's memory management in Python? - ...

Python for Data Science

Concepts of Python in Data Science Numbers:   Using the numbers we can do some arithmetic   operations  on that. 1. Addition of two numbers using print function:          2+3            print(2+3)     5               5 2.  Subtraction of two numbers using print function:     3-2           print(2-3)     1                1 3. Multiplication  of two numbers using print function:     3*2         print(2*)     6               6 4. Division  of two numbers using print function:      Note: If we use one ("/") this we can get floating point number. Instead of that we use floor division       that gives quotient.         ...