Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Sneha Pandey

Sneha Pandey

Community Learner
Active in: Data Science
Share
10Questions
10Answers
12.5KViews on questions

Explain with a case study how to visualize a KNN classification model in R.

First we import the data and convert the target feature as factor # Importing the dataset dataset = read.csv('Social_Network_Ads.csv') dataset = dataset[3:5] Now we split, scale and fit the data into a KNN model # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools)…

Data Science

Answered Dec 20, 2019 · 1.4K Views Read answer →

How to create a basic dataframe using R?

A data frame is a 2 dimensional structure containing data in the form of rows and columns. A data frame is used to easily represent data in the form of spreadsheet and can be easily accessed in every algorithm. Also a dataframe contains a series of dictionaries with particular keys and values that are represented in…

Data Science

Answered Dec 10, 2019 · 1.4K Views Read answer →

How can ROC and AUC can help us evaluate our model?

ROC curve can give us a clear idea to set a threshold value to classify the label and also help in model optimization. A low threshold value we will put most of the predicted observations under the positive category, even when some of them should be placed under the negative category. On the other hand, keeping the…

Data Science

Answered Nov 30, 2019 · 1.1K Views Read answer →

Explain maximum likelihood estimation.

Maximum likelihood estimation is a method of estimating the parameters of a model given observations, by finding the parameter values that maximize the likelihood of making the observations, this means finding parameters that maximize the probability p of event 1 and (1-p) of non-event 0, as we know: probability…

Data Science

Answered Nov 28, 2019 · 1.3K Views Read answer →

Explain implementation of decision tree regression in Python

First we import the data # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Position_Salaries.csv') X = dataset.iloc[:, 1:2].values y = dataset.iloc[:, 2].values Then we split the data # Splitting the dataset into the Training…

Data Science

Answered Nov 9, 2019 · 1.4K Views Read answer →

Explain Gini in decision tree algorithm

It is an impurity which is also a measure of misclassification which applies in a context of multi class classifier. It works similar to entropy but is quicker and easy to calculate. It works on the blow formula.Where i=number of classes. The similarity between Gini and entropy is shown below

Data Science

Answered Nov 7, 2019 · 1.1K Views Read answer →

More members from the Data Science community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.