AmitDiwan has Published 10744 Articles

Explain how series data structure in Python can be created using scalar/constant values?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:45:35

283 Views

Scalar or constant values are defined once, and they are repeated across all rows/entries of the series data structure. Following is an example −Example Live Demoimport pandas as pd my_index = ['ab', 'mn' ,'gh', 'kl'] my_series = pd.Series(7, index = my_index) print("This is series data structure created using scalar values and ... Read More

How can Seaborn library be used to display a Scatter Plot in Python?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:44:08

202 Views

Visualizing data is an important step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations. Seaborn is a library that helps in visualizing data.Scatter plot shows the distribution of data as data points that are spread/scattered on the ... Read More

How can series be created using Numpy and passing index value explicitly in Python?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:42:59

226 Views

Let us see how a series data structure can be created with the help of a Numpy array, and explicitly giving values for ‘index’.When no value is specified for index, default values beginning from 0 are assigned to values in the series.Following is an example −Example Live Demoimport pandas as pd ... Read More

Explain what a neuron is, in terms of Neural Network in Machine Learning.

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:41:35

351 Views

A neuron is a mathematical function that takes one or more values as input and outputs a ingle numerical value −It can be defined as follows −Here, ‘f’ refers to the function.We first computed the weighted sum of the inputs xi and the weights wiThe weight wi is also known ... Read More

What is a Neural Network in Machine Learning?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:38:12

7K+ Views

A neural network can be understood as a network of hidden layers, an input layer and an output layer that tries to mimic the working of a human brain.The hidden layers can be visualized as an abstract representation of the input data itself. These layers help the neural network understand ... Read More

What is a Perceptron? What are its limitations? How can these limitations be overcome in Machine Learning?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:37:18

4K+ Views

The basic example of a neural network is a ‘perceptron’. It was invented by Frank Rosenblatt in 1957. The perceptron is a classification algorithm similar to logistic regression. This because, similar to logistic regression, a perceptron has weights, w, and an output function, ‘f’, which is a dot product of ... Read More

Why are Neural Networks needed in Machine Learning?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:35:58

385 Views

Neural networks have been around for many years, through which they have been praised as well as criticised for their characteristics.But off late, they have gained attention over other machine learning algorithms. Of course, Machine learning algorithms are important as they help achieve certain goals. But what should we do ... Read More

How does the Q-table help determine the next action for the ‘agent’ in terms of reinforcement learning in Machine Learning?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:33:08

264 Views

We previously understood how Q-learning works, with the help of Q-value and Q-table. Q-learning is a type of reinforcement learning algorithm that contains an ‘agent’ that takes actions required to reach the optimal solution. This is achieved with the help of Q-table that is present as a neural network. It ... Read More

What is Q-learning with respect to reinforcement learning in Machine Learning?

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 12:22:29

3K+ Views

Q-learning is a type of reinforcement learning algorithm that contains an ‘agent’ that takes actions required to reach the optimal solution.Reinforcement learning is a part of the ‘semi-supervised’ machine learning algorithms. When an input dataset is provided to a reinforcement learning algorithm, it learns from such a dataset, otherwise it ... Read More

Comparing the performance of recursive and looped factorial function in JavaScript

AmitDiwan

AmitDiwan

Updated on 10-Dec-2020 08:30:06

205 Views

We will be writing two JavaScript functions, the job of both the functions will be to take in a number and return its factorial.The first function should make use of a for loop or while loop to compute the factorial. Whereas the second function should compute the factorial using a ... Read More

Advertisements