This file contains 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
package main | |
import ( | |
"encoding/xml" | |
"fmt" | |
"net/http" | |
"os" | |
"time" | |
) |
This file contains 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
// see http://www.netlib.org/clapack/cblas/dgemv.c | |
package main | |
/* | |
#cgo LDFLAGS: -L/usr/lib/libblas -lblas | |
#include <stdlib.h> | |
extern void dgemv_(char* trans, int *m, int *n, double *alpha, | |
double *A, int *lda, double *x, int *incx, double *beta, double *y, | |
int *incy); | |
*/ |
This file contains 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
$(function() { | |
$('#title').html("sgdmf"); | |
(function() { | |
var i = []; | |
i.push("<p>"); | |
i.push("This is a demo of stochastic gradient descent applied to matrix factorization."); | |
i.push("'lambda' penalizes model complexity (in terms of rank), so"); |
This file contains 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
$(function() { | |
$('#title').html("sgdmf"); | |
(function() { | |
var i = []; | |
i.push("<p>"); | |
i.push("This is a demo of stochastic gradient descent applied to matrix factorization."); | |
i.push("'lambda' penalizes model complexity (in terms of rank), so"); |
This file contains 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
yahoo <- function(s) read.csv(file=paste('http://ichart.finance.yahoo.com/table.csv?s=',s,'&c=1900&f=2012&g=d',sep='')); | |
ticker = 'AAPL' | |
dat = yahoo(ticker); | |
plot(main=ticker, xlab='date', ylab='close price', | |
as.Date(dat$Date),dat$Adj.Close,type='l',log='y'); | |
grid(); |
This file contains 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 java.io.BufferedInputStream; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.net.URLDecoder; | |
import java.util.LinkedList; | |
import java.util.List; |