Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading formats #14

Merged
merged 25 commits into from
Aug 13, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
67864d0
Prototype code for handling file type ETL
freeman-lab Aug 6, 2014
b1e2ff7
Added convenience function for transforms
freeman-lab Aug 8, 2014
5cb13c4
Modified packing to maintain xy coordinates
freeman-lab Aug 8, 2014
9e52ee8
Automatically add jars in launcher
freeman-lab Aug 8, 2014
e49e8b0
Added option for loading binary files
freeman-lab Aug 8, 2014
2ece1c0
Added part label for stack files
freeman-lab Aug 8, 2014
45edb8a
Updated scala code to 0.2.0
freeman-lab Aug 8, 2014
7a228ca
Made record length a configuration parameter
freeman-lab Aug 8, 2014
fcd1ec1
Major refactoring of inputs
freeman-lab Aug 12, 2014
c5daf3c
Adding jar with binary input format as a lib file
freeman-lab Aug 12, 2014
2809370
Fixed stray line
freeman-lab Aug 12, 2014
3caa565
Cleaned up imports and doc
freeman-lab Aug 13, 2014
2f81ee8
Fixed formatting
freeman-lab Aug 13, 2014
d8c44ca
Automatic add wildcard for binary files
freeman-lab Aug 13, 2014
33bc43d
Typo in doc
freeman-lab Aug 13, 2014
a821eb2
Automatic partitioning for converting stacks
freeman-lab Aug 13, 2014
288c69d
Fixed rounding error
freeman-lab Aug 13, 2014
d24a18f
Allow specification of file range
freeman-lab Aug 13, 2014
6b15fae
Use new loading in standalone apps
freeman-lab Aug 13, 2014
d95fb25
Changed var name
freeman-lab Aug 13, 2014
68ccf48
Write SUCCESS log files
freeman-lab Aug 13, 2014
ddaea23
Improved docs
freeman-lab Aug 13, 2014
0202bc4
Consistent defaults
freeman-lab Aug 13, 2014
003fe20
Modified log file
freeman-lab Aug 13, 2014
a4d0299
Merge branch 'master' into loading-formats
freeman-lab Aug 13, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use new loading in standalone apps
  • Loading branch information
freeman-lab committed Aug 13, 2014
commit 6b15fae1ebcae68c5543c80c258e94f187188cab
7 changes: 3 additions & 4 deletions python/thunder/timeseries/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import argparse
from numpy import zeros
from scipy.io import loadmat
from pyspark import SparkContext
from thunder.utils import load, getdims, subtoind
from thunder.utils import ThunderContext, getdims, subtoind
from thunder.utils import save


Expand Down Expand Up @@ -88,9 +87,9 @@ def calc(self, data):

args = parser.parse_args()

sc = SparkContext(appName="query")
tsc = ThunderContext.start(appName="query")

data = load(sc, args.datafile, args.preprocess).cache()
data = tsc.loadText(args.datafile, args.preprocess).cache()
ts = Query(args.indsfile).calc(data)

outputdir = args.outputdir + "-query"
Expand Down
8 changes: 3 additions & 5 deletions python/thunder/timeseries/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
import argparse
from numpy import median, mean, std
from scipy.linalg import norm
from pyspark import SparkContext
from thunder.timeseries.base import TimeSeriesBase
from thunder.utils import load
from thunder.utils import save
from thunder.utils import ThunderContext, save


class Stats(TimeSeriesBase):
Expand Down Expand Up @@ -37,9 +35,9 @@ def get(self, y):

args = parser.parse_args()

sc = SparkContext(appName="stats")
tsc = ThunderContext.start(appName="stats")

data = load(sc, args.datafile, args.preprocess).cache()
data = tsc.loadText(args.datafile, args.preprocess).cache()
vals = Stats(args.mode).calc(data)

outputdir = args.outputdir + "-stats"
Expand Down