Posts

Machine Learning Numpy

1. how to create array using numpy : import numpy as np #ad array a=np.array([10,20,30]) // int,float ,String  // array should be homoginous #2 d array 3*3 b=np.array([ [1,2,12], [12,12,12], [12,34,5] ]) #3*3*3 c=np.array([ [[1,2,3],[4,5,6],[7,8,9]], [[4,5,6],[8,6,7],[5,6,7]], [[8,8,8],[9,9,9],[9,98,8]] ]) print(a) print(b) print(c) #Arrange Function : a = np.arange(10,20) //start value and end value print(a) [10........................19] a=np.arnage(10,20,2)

Exception Handaling In Spring

-------------------------------------------------------------------------------------------------------------------------- -  When The User Request for the web page then user get webpage as a Response. - Example    @Controller public class CommonController {     @RequestMapping("/")     public String homePage() {         return "home";     } ------------------------------------------------------------------------------------------------------------------------------- - Due to some developer mistake or some other reason if while processing the request if  the method throws some exception say Null Pointer , Resourcefulness or Any Other what user get in that case is ". HTTP Status 500 -   Brief description of the error which occurred on server. and related stack trace information.  - Example   @Controller public class CommonController...

SpringBoot CRUD Operation

 import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; @SpringBootApplication public class SpringBootJpaApplication {       public static void main(String[] args) {         SpringApplication.run(SpringBootJpaApplication.class, args);     }        } ---------------------------------------------------------------------------------------------------------------------- import javax.persistence.Column; import javax.persistence.Entity;  import javax.persistence.Id;  import javax.persistence.Table; @Entity  @Table(name="new1") public class UserRecord {      @Id      private int id;     @Column     private String name;     @Colu...

@Component Scan Annotation Spring

 Auto Binding Object ================================== <?xml version='1.0' encoding='UTF-8' ?> <beans xmlns="http://www.springframework.org/schema/beans"     xmlns:context="http://www.springframework.org/schema/context"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:mvc="http://www.springframework.org/schema/mvc"     xsi:schemaLocation="         http://www.springframework.org/schema/beans             http://www.springframework.org/schema/beans/spring-beans.xsd         http://www.springframework.org/schema/context         http://www.springframework.org/schema/context/spring-context.xsd ">     <context:component-scan base-package="com.hello"/>     <context:component-scan base-package="com.mod...

Liner Regression Solved Example for ML

Image
Formula : Y=aX+b So first we calculate a and b a=n* summation(xy)-summation(x)*summation(y) / n* summation(x*x)- summation(x*x) b=1/n * (summation(y)- a * summation(x))

Naive Bayes Algorithm For Machine Learning..working

Image
                        

Mysql Hosting Comming Soon

https://www.freemysqlhosting.net