Publications by Daniel
Yelp Dataset Projeto 2VA CPAD
Yelp Dataset Analysis Loading Dataset file <- "yelp_academic_dataset_business.json" business <- jsonlite::stream_in(textConnection(readLines(file, n=300000)), flatten = TRUE) Data samples: A tabela abaixo mostra alguns exemplos de negócios registrados no dataset do Yelp. para visualização, estão mostradas apenas as 12 primeiras colunas e ...
461 sym
Lista_12
Lista 12 - Daniel Rosa Questão 1 xlim <- c(0, 3) ylim <- c(0, 518) clock <- c(0.1, 0.5, 1, 1.5, 2, 2.5, 3) MRT_1F <-c(517.1468515630205, 85.13094142168089, 30.333207896694553, 12.694776264558937, 3.3041601673945418, 1.1823111717498882, 1.1892293502386786) MRT_3F <-c(156.68929936163462, 11.540837783562276, 0.4512835621696538, 0.4509797929766...
178 sym R (12129 sym/17 pcs) 8 img
UWB BIS 411 Final Project
#Summary The purpose of this project was to get a better understanding of how proteins of the human body interact with each other. I attempted to create a network visual showcasing the interactions of different proteins. The first step was to load the necessary libraries and the data set into the IDE “Rstudio”. Afterwards, I used the data ...
2896 sym R (724614 sym/12 pcs) 1 img
Atividade Aula 11 - CPAD
Atividade Relatório em R Markdown - Daniel Rosa Manipulando dados data("mtcars") head(mtcars, 5) ## mpg cyl disp hp drat wt qsec vs am gear carb ## Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4 ## Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4 ## Datsun 710 22.8 4 ...
1792 sym Python (1408 sym/5 pcs) 2 img
Document
library(wordcloud2) ## simple example head(demoFreq) ## word freq ## oil oil 85 ## said said 73 ## prices prices 48 ## opec opec 42 ## mln mln 31 ## the the 26 wordcloud2(data = demoFreq)...
7 sym R (240 sym/3 pcs)
SVM
set.seed(1) x <- matrix(rnorm(20 * 2), ncol = 2) y <- c(rep(-1, 10), rep(1, 10)) x[y == 1, ] <- x[y == 1, ] + 1 plot(x, col = (3 - y)) # Fit the support vector classifier dat <- data.frame(x = x, y = as.factor(y)) library(e1071) svmfit <- svm(y ~ ., data = dat, kernel = "linear", cost = 10, scale = FALSE) # Plot the support vector classif...
15 sym R (2282 sym/10 pcs) 2 img
BBUS 301 RMarkdown Practice
About the Challenge Expo The Annual Data Challenge Expo is jointly sponsored by three American Statistical Association (ASA) Sections – Statistical Computing, Statistical Graphics, and Government Statistics. Data The atmos data set resides in the nasaweather package of the R programming language. It contains a collection of atmospheric varia...
1875 sym R (1021 sym/9 pcs) 1 img
Document
Section 1 Variables The mtcars dataset includes 11 numeric variables: mpg - Miles/(US) Gallon cyl - Number of cylinders disp - Displacement (cu.in) hp - Gross horsepower drat - Rear axle ratio wt - Weight (1000 lbs) qsec - 1/4 mile time vs - Engine (0 = V-shaped, 1 = Straight) am - Transmission (0 = automatic, 1 = manual) gear - Number of forward...
489 sym 1 img
Group assignment
Q16: Using the Boston data set, fit classification models in order to predict whether a given census tract has a crime rate above or below the me- dian. Explore logistic regression, LDA, naive Bayes, and KNN models using various subsets of the predictors. Describe your findings. Hint: You will have to create the response variable yourself, usin...
4035 sym R (5757 sym/14 pcs)
Resampling techniques
# Load necessary libraries library(caret) ## Loading required package: ggplot2 ## Loading required package: lattice library(ggplot2) # Load the mtcars dataset data(mtcars) # Splitting the data into features (X) and target variable (y) X <- mtcars[, -1] # Excluding the first column (car names) y <- mtcars[, 1] # First column (mpg) # Spl...
12 sym R (1810 sym/8 pcs) 1 img