Posts

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

JSP Automatic Redirect After Session Expire/Timeout

 Steps : 1.Create index.jsp and write below code ================================================ <html>     <head>         <META HTTP-EQUIV="refresh" CONTENT="<%= session.getMaxInactiveInterval() %>; URL=error.jsp" />         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">         <title>JSP Page</title>     </head>     <body>         </body> </html> ================================================== 2.create error.jsp ================================================== 3. in web.xml write below entry of session in minit  <session-config>         <session-timeout>             1    ...

Hibernate Named Queries With Annotation- Comming Soon

Hibernate Named Queries With XML- Comming Soon

Component Mapping With Annotation

When we want to store one class object as value to another class object then we have to use component mapping For Component mapping we have two annotations. 1. Embedable 2.Embeded A class whose object we want to store like a value of another class object should be annotated with ======> @Embedable To the reference variable of embedable class we need to as ===> @Embeded annotation  =============================================== @Embeddable public class Address {     int hno;     String city; } ================================================ @Entity @Table public class Student {     @Id     int id;     @Column     String  name;     @Embedded Address address; ===============================================