Posts

Showing posts from December, 2018

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 {     @RequestMapping("/")     public String homePage() throws IOException{         S