This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "abarmat.id" is my Blockstack ID. https://onename.com/abarmat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pprint | |
import re | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from sklearn import metrics, cross_validation | |
from sklearn.base import BaseEstimator, TransformerMixin | |
from sklearn.feature_extraction import DictVectorizer | |
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library('e1071'); | |
library(Amelia) | |
FILENAME <- 'tp2-work.csv' | |
# Randomizer | |
set.seed(100) | |
# Read file | |
data <- read.csv(FILENAME, header=TRUE, sep=";") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library('e1071'); | |
library('SparseM'); | |
library('tm'); | |
FILENAME <- 'tp2-work.csv' | |
# Randomizer | |
set.seed(100) | |
# Read file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setwd("D:/Datamining") | |
# para eliminar error de java | |
if (Sys.getenv("JAVA_HOME")!="") | |
Sys.setenv(JAVA_HOME="") | |
# paquetes requeridos | |
if(!require (RWeka)){ | |
install.packages('RWeka') | |
require (RWeka) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(xgboost) | |
library(stringr) | |
preprocess <- function(items) { | |
# Select features | |
attr_list = c('anio', 'mes', 'tipoprop', 'lugar', 'sup_tot_m2', | |
'lat_lon', 'sup_cub_m2', 'piso', 'cant_amb', 'geoname_num', 'Clase') | |
df <- items[attr_list] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import logging | |
import pandas as pd | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from sklearn import preprocessing | |
from itertools import groupby | |
from operator import itemgetter |
NewerOlder