AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 704 of 840

What is a Neural Network in Machine Learning?

AmitDiwan
AmitDiwan
Updated on 10-Dec-2020 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 various features of the data with the help of its own internal logic.These neural networks are non-interpretable models. Non-interpretable models are those which can’t be interpreted or understood even if we observe the hidden layers. This is because the neural networks have an internal logic working on its own, that ...

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 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 the weights and the input.The only difference is that ‘f’ is a simple step function, where a logistic regression rule is applied to the output of the logistic function. On the other hand, perceptron can be understood as an example of a simple one-layer neural feedforward network.The perceptron was considered ...

Read More

Why are Neural Networks needed in Machine Learning?

AmitDiwan
AmitDiwan
Updated on 10-Dec-2020 490 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 when machine learning algorithms can’t achieve higher accuracy?This is where deep learning algorithms come into play. They mimic the layers of the human brain, and try to take optimal decisions by passing an input from one layer to the next.Neural networks, as the name suggests, tries to follow the pattern ...

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 322 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 helps take the right step that maximizes the reward, thereby reaching the optimal solution.Now, let us see how the agent uses the policy to decide on the next step that it needs to take to achieve optimum results.The policy considers the Q-values of all possible actions that could be taken, ...

Read More

How to concatenate two JavaScript objects with plain JavaScript ?

AmitDiwan
AmitDiwan
Updated on 21-Nov-2020 425 Views

Suppose we have two objects defined like this −const obj1 = {    id1: 21,    name1: "Kailash" }; const obj2 = {    id2: 20,    name2: "Shankar" };We are required to write a JavaScript function that takes in two such objects and merges into a single object.In other words, we are required to more or less implement the functionality of Object.assign() function.ExampleThe code for this will be −const obj1 = {    id1: 21,    name1: "Kailash" }; const obj2 = {    id2: 20,    name2: "Shankar" }; const concatObjects = (...sources) => {    const target ...

Read More

How does spring boot connect localhost MySQL

AmitDiwan
AmitDiwan
Updated on 20-Nov-2020 2K+ Views

For this, use application.properties −spring.datasource.username=yourMySQLUserName spring.datasource.password=yourMySQLPassword spring.datasource.url=jdbc:mysql://localhost:3306/yoruDatabaseName spring.datasource.driver-class-name=com.mysql.cj.jdbc.DriverTo understand the above syntax, let us create a table −mysql> create table demo71 −> ( −> id int, −> name varchar(20) −> ); Query OK, 0 rows affected (3.81 sec)Insert some records into the table with the help of insert command −mysql> insert into demo71 values(100, 'John'); Query OK, 1 row affected (0.13 sec) mysql> insert into demo71 values(101, 'David'); Query OK, 1 row affected (0.49 sec) mysql> insert into demo71 values(102, 'Bob'); Query OK, 1 row affected (0.15 sec)Display records from the table using select statement −mysql> select *from ...

Read More

What is the difference Between AND, OR operator in MySQL while Retrieving the Rows?

AmitDiwan
AmitDiwan
Updated on 20-Nov-2020 2K+ Views

The difference between AND, OR is that AND evaluates both conditions must be true for the overall condition to be true. The OR evaluates one condition must be true for the overall condition to be true.Let us create a table −mysql> create table demo70 −> ( −> id int not null auto_increment primary key, −> name varchar(20), −> age int −> ); Query OK, 0 rows affected (0.67 sec)Insert some records into the table with the help of insert command −mysql> insert into demo70(name, age) values('John', 23); Query OK, 1 row affected (0.18 sec) mysql> insert into demo70(name, age) ...

Read More

Update all varchar column rows to display values before slash in MySQL?

AmitDiwan
AmitDiwan
Updated on 20-Nov-2020 288 Views

For this, use UPDATE command along with SUBSTRING_INDEX(). Let us first create a table −mysql> create table demo69 −> ( −> name varchar(40) −> ); Query OK, 0 rows affected (5.04 sec)Insert some records into the table with the help of insert command −mysql> insert into demo69 values('John/Smith'); Query OK, 1 row affected (0.83 sec) mysql> insert into demo69 values('David/Miller'); Query OK, 1 row affected (0.23 sec) mysql> insert into demo69 values('Chris/Brown'); Query OK, 1 row affected (0.40 sec) mysql> insert into demo69 values('Carol/Taylor'); Query OK, 1 row affected (0.36 sec)Display records from the table using select ...

Read More

How to combine few row records in MySQL?

AmitDiwan
AmitDiwan
Updated on 20-Nov-2020 191 Views

For this, use CASE WHEN concept. Let us first create a table −mysql> create table demo68 −> ( −> id int not null auto_increment primary key, −> company_name varchar(50), −> employee_name varchar(50), −> country_name varchar(50) −> ); Query OK, 0 rows affected (1.86 sec)Insert some records into the table with the help of insert command −mysql> insert into demo68(company_name, employee_name, country_name) values('Google', 'John', 'US'); Query OK, 1 row affected (0.29 sec) mysql> insert into demo68(company_name, employee_name, country_name) values('Google', 'Bob', 'UK'); Query OK, 1 row affected (0.10 sec) mysql> insert into demo68(company_name, employee_name, country_name) values('Google', 'David', 'AUS'); Query OK, ...

Read More

MySQL limit in a range fail to display first 3 row?

AmitDiwan
AmitDiwan
Updated on 20-Nov-2020 179 Views

Following is the syntax to display only the first 3 rows with LIMIT set in a range −select *from yourTableName limit yourStartIndex, yourEndIndex;Let us first create a table −mysql> create table demo67 −> ( −> id int, −> user_name varchar(40), −> user_country_name varchar(20) −> ); Query OK, 0 rows affected (0.72 sec)Insert some records into the table with the help of insert command −mysql> insert into demo67 values(10, 'John', 'US'); Query OK, 1 row affected (0.19 sec) mysql> insert into demo67 values(1001, 'David', 'AUS'); Query OK, 1 row affected (0.14 sec) mysql> insert into demo67 values(101, 'Mike', 'UK'); ...

Read More
Showing 7031–7040 of 8,392 articles
« Prev 1 702 703 704 705 706 840 Next »
Advertisements