Skip to content

Instantly share code, notes, and snippets.

View talegari's full-sized avatar

Srikanth K S talegari

View GitHub Profile
@talegari
talegari / optimal_scree.R
Last active October 4, 2016 06:58
[R] Find the "right" point in a scree plot using a simple heuristic
###############################################################################
#
# optimal_scree ----
#
###############################################################################
#
# author : Srikanth KS (talegari)
# license : GNU AGPLv3 (http://choosealicense.com/licenses/agpl-3.0/)
#
###############################################################################
###############################################################################
#
# optimal_poly ----
#
###############################################################################
#
# author : Srikanth KS (talegari)
# license : GNU AGPLv3 (http://choosealicense.com/licenses/agpl-3.0/)
#
###############################################################################
###############################################################################
#
# R_packages_and_their_friends ----
# version: 1
#
###############################################################################
#
# author : Srikanth KS (talegari)
# license : GNU AGPLv3 (http://choosealicense.com/licenses/agpl-3.0/)
#
@talegari
talegari / tiny_links.md
Last active June 28, 2017 12:10
tiny links for some of my gists
@talegari
talegari / libraryQ
Created October 22, 2016 18:27
Load a R library without cluttering the terminal
###############################################################################
#
# libraryQ ----
#
###############################################################################
#
# author : Srikanth KS (talegari)
# license : GNU AGPLv3 (http://choosealicense.com/licenses/agpl-3.0/)
#
###############################################################################
@talegari
talegari / rString.R
Last active November 14, 2016 14:06
encode/decode R objects as/from strings
###############################################################################
#
# rString ----
#
###############################################################################
#
# author : Srikanth KS (talegari)
# license : GNU AGPLv3 (http://choosealicense.com/licenses/agpl-3.0/)
#
###############################################################################
@talegari
talegari / neural_network_and_deep_learning_libraries_R.md
Last active January 27, 2017 07:22
Neural network and Deep learning libraries for R
@talegari
talegari / rmetatools.R
Last active December 29, 2016 07:56
Functions to help with code execution analysis in R
# how much memory did an execution use in MBs
mem_usage <- function(...){
exprs <- as.list(match.call(expand.dots = FALSE)$...)
invisible(gc(reset = TRUE))
start_mem <- sum(gc()[,2])
lapply(exprs, eval, parent.frame())
max_mem <- sum(gc()[,6])
@talegari
talegari / recsysr.md
Last active August 5, 2022 01:59
R libraries for recommender systems

R libraries for recommender systems

A list of R libraries for Recommender systems. Most of the libraries are good for quick prototyping.

Maintainer: Srikanth KS(talegari) Email: gmail me at sri dot teach (do write to me about packages ommited)

Package Dev page Description
recommenderlab github Provides a research infrastructure to test and develop recommender algorithms including UBCF, IBCF, FunkSVD and association rule-based algorithms
rrecsys github Implementations of several popular recommendation systems like Global/Item/User-Average baselines, Item-Based KNN, FunkSVD, BPR and weighted ALS for rapid prototyping
@talegari
talegari / rccpmlpack2_notes.md
Last active January 4, 2017 09:37
guide to install rcppmlpack2 on ubuntu trusty

Guide to install rcppmlpack2 on ubuntu trusty

until its released on CRAN

  • sudo add-apt-repository ppa:edd/misc
  • sudo apt-get update
  • sudo apt-get install libmlpack-dev libboost-all-dev libboost-program-options-dev libboost-serialization-dev libarmadillo-dev r-cran-rcpp r-cran-rcpparmadillo

in R: devtools::install_github("eddelbuettel/rcppmlpack2")