Skip to content

Instantly share code, notes, and snippets.

View digorithm's full-sized avatar
⚒️
Building

Rodrigo Araújo digorithm

⚒️
Building
View GitHub Profile
public void printConvergence(){
double[] theta0plot2 = new double[iters];
double[] theta1plot2 = new double[iters];
double[] tplot2 = new double[iters];
System.arraycopy(theta0plot, 0, theta0plot2, 0, iters);
System.arraycopy(theta1plot, 0, theta1plot2, 0, iters);
System.arraycopy(tplot, 0, tplot2, 0, iters);
// Plot the convergence of data
import javax.swing.JFrame;
import org.math.plot.*;
public class TestGradDescent {
public static void main(String[] args ){
InitialData id = new InitialData();
id.plotData();
GradientDescent gd = new GradientDescent(id);
gd.execute();
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cross_validation import cross_val_score
from sklearn.linear_model import LogisticRegression
"""
Here we solve the problem of predicting if a wine is white or red
"""
reds = pd.read_csv('winequality-red.csv', sep=';')
"""
Programa desenvolvido por Rodrigo Araujo.
Materia: Compiladores
Orientador: jose couto
programa: reconhecedor de estrutura de repeticao FOR do java
"""
import re
package model;
public class Person {
public Person() {
}
public String name;
public String phone;
package dao;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class ConnectionClass {
package dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import model.Person;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controller;
import dao.PersonDAO;
import java.io.IOException;
import java.io.PrintWriter;
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:forward page="/PersonController?action=listperson" />
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">