This file is indexed.

/usr/share/pyshared/pebl/test.manual/test_scale.py is in python-pebl 1.0.2-2+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Testing the scale of problems that pebl can handle.

How to use this
---------------
Import into python shell and call test_pebl with different sets of arguments.

"""

import numpy as N
from pebl import data, config
from pebl.learner import greedy

def test_pebl(numvars, numsamples, greedy_iters, cachesize):
    print "Testing with #vars=%d, #samples=%d, iters=%d, cachesize=%d" % (
    numvars, numsamples, greedy_iters, cachesize)

    config.set('localscore_cache.maxsize', cachesize)
    d = data.Dataset(N.random.rand(numsamples, numvars))
    d.discretize()
    g = greedy.GreedyLearner(d, max_iterations=greedy_iters)
    g.run()
    return g

if __name__ == '__main__':
    test_pebl(1000, 1000, 1000000, 1000)