Keras: Sequential Model

The sequential API is used to create models layer-by-layer. It is limited in that it does not allow you to create models that share layers or have multiple inputs or outputs. The Sequential model is a linear stack of layers.

We can create a Sequential model incrementally using the add() method:

model = keras.Sequential() model.add(layers.Dense(2, activation=”relu”)) model.add(layers.Dense(3, activation=”relu”)) model.add(layers.Dense(4))

Also, it can be created using `Dense()` method as shown below:

layers.Dense(2, activation=”relu”, name=”layer1″), layers.Dense(3, activation=”relu”,

Continue Reading
Pandemic : An Opportunity in Disguise

Pandemic : An Opportunity in Disguise

Pandemic has held the world shut and everything seems to be adversely affected. The world economy has been challenged and from the niche market to global enterprises, the revenue has dropped by a big margin. According to BBC, British Airways has cut up to 12000 job as air travel collapsed.

The situation has been brutish not only to the companies and enterprises but we as a person have been mentally confronted as well. Most of

Continue Reading
How to Create Login with Facebook in PHP?

How to Create Login with Facebook in PHP?

As we know, Facebook is a widely used social network and sometimes, we have to create a login with Facebook mechanism in our websites. This becomes even more essential if our websites provide feature/system such as reservation, booking, resource downloading/accessing or even eCommerce where users tracking becomes a requisite.

User often finds it lazy and irritating to register a new user account in your website to interact with your system. So, why not provide

Continue Reading
REST API for Beginners : Adding a New Post

REST API for Beginners : Adding a New Post

According to wordpress.org, ‘WordPress REST API provides API endpoints for WordPress data types that allow developers to interact with sites remotely by sending and receiving JSON (JavaScript Object Notation) objects.’

Talking about WordPress REST API, we generally talk about the end points as well as routes. If we just use http://sitedomain.com/wp-json/, we get to know what Endpoints are available and also the routes for those Endpoints.

Scenario

If we are playing around with posts, we

Continue Reading
Combine Terms and Posts in Search Result with WP_Query

Combine Terms and Posts in Search Result with WP_Query

Approach

As we know the default WordPress search form searches for posts by the title and displays the result according to the keywords entered. But I think the search should be doing more. The search should be more effective as users don’t necessarily know what they are searching and how the search mechanism works.

So, to make the search even more effective, why not bring the terms and taxonomies into action. I think if taxonomies

Continue Reading