MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
| import org.apache.spark.mllib.linalg.distributed.RowMatrix | |
| import org.apache.spark.mllib.linalg._ | |
| import org.apache.spark.{SparkConf, SparkContext} | |
| // To use the latest sparse SVD implementation, please build your spark-assembly after this | |
| // change: https://github.com/apache/spark/pull/1378 | |
| // Input tsv with 3 fields: rowIndex(Long), columnIndex(Long), weight(Double), indices start with 0 | |
| // Assume the number of rows is larger than the number of columns, and the number of columns is | |
| // smaller than Int.MaxValue |
| # (C) Mathieu Blondel, November 2013 | |
| # License: BSD 3 clause | |
| import numpy as np | |
| from scipy.linalg import svd | |
| def frequent_directions(A, ell, verbose=False): | |
| """ | |
| Return the sketch of matrix A. |
| from __future__ import division | |
| from numpy import * | |
| class AdaBoost: | |
| def __init__(self, training_set): | |
| self.training_set = training_set | |
| self.N = len(self.training_set) | |
| self.weights = ones(self.N)/self.N | |
| self.RULES = [] |
| import numpy as np | |
| def low_rank_approx(SVD=None, A=None, r=1): | |
| """ | |
| Computes an r-rank approximation of a matrix | |
| given the component u, s, and v of it's SVD | |
| Requires: numpy | |
| """ |
The list would not be updated for now. Don't write comments.
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.
Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:
githubUsers| find . -name "*.php" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done |
| """ | |
| Low rank approximation for the lena image | |
| """ | |
| import numpy as np | |
| import scipy as sp | |
| from scipy import linalg | |
| import pylab as pl | |
| X = sp.lena().astype(np.float) | |
| pl.gray() |