Sin categoría

Linear Regression with Python

Linear regression is a method used to find the relation between 2 variables. It will try to find a line that best fit all the points and with that line, we are going to be able to make predictions in a continuous set (regression predicts a value from a continuous set, for example, the price of a house depending on the size). How we are going to accomplish that? Well, we need to measure the error between each point to the line, find the slope and the alpha value to get the linear regression equation.

We need to understand a couple of concepts like the covariance, the variance and the coefficient of correlation.

Continue reading

Sin categoría

Authentication and Authorization with JWS (JSON Web Tokens) .NET Web API

In this tutorial, I’m going to show you how to use JWT with the web API in .NET

In the next scenario (happy path) the client will try to authenticate himself calling the JWT service. After getting the JWT the client will be able to call other services.

  1. The client will send his credentials to the JWT service.
  2. Then the service will go to a Database or will call an authentification service and will return who the person is in the DB.
  3. The JWT service will return the JWT
  4. The client now is able to call and use other services sending the JWT so the server can verify who the client is.

JWT.PNG

Continue reading