コード例 #1
0
#      All Rights Reserved
#
#  This software is distributed under the terms of the Eclipse Public
#  License, Version 1.0 which can be found in the file named LICENSE.
#  ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS SOFTWARE CONSTITUTES
#  RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT

import sys
sys.path.append('../../')
import evaluate
import config

dynamic_workload = {
    'fname': 'atphttpd',
    'pickle': config.workloadsdir + 'atphttpd.pickle',
    'numeval': 1000,
}

static_workloads = []

evaluate.bigeval(
    sig_names=['LCS', 'BayesAnd', 'LCSeq', 'Bayes2'],
    training_streams=config.traces[80]['training'],
    fpos_eval_streams=config.traces[80]['eval'],
    fpos_eval_count='5000000',
    dynamic_workload=dynamic_workload,
    static_workloads=static_workloads,
    dynamic_range=range(2, 10) + range(10, 50, 5) + range(50, 101, 10),
    #	dynamic_range=range(20)+range(20,101,10),
    trials=5)
コード例 #2
0
ファイル: run.py プロジェクト: Bletchley13/polygraph
#
#  This software is distributed under the terms of the Eclipse Public
#  License, Version 1.0 which can be found in the file named LICENSE.
#  ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS SOFTWARE CONSTITUTES
#  RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT

import sys
sys.path.append('../../')
import evaluate
import config

dynamic_workload = {
        'fname': 'apache', 
        'pickle': config.workloadsdir + 'apache.pickle',
        'numeval': 1000,
}

static_workloads = []

evaluate.bigeval(
    sig_names=['LCS', 'BayesAnd', 'LCSeq', 'Bayes2'],
	training_streams=config.traces[80]['training'],
	fpos_eval_streams=config.traces[80]['eval'],
	fpos_eval_count='5000000',
	dynamic_workload=dynamic_workload,
	static_workloads=static_workloads,
	dynamic_range=range(2,10)+range(10,50,5)+range(50,101,10),
#	dynamic_range=range(20)+range(20,101,10),
	trials=5
)
コード例 #3
0
dynamic_workload = {
    'fname': 'http_noise',
    'pickle': config.workloadsdir + 'http_noise.pickle',
    'numeval': 0,
}

static_workloads = [{
    'fname': 'apache',
    'pickle': config.workloadsdir + 'apache.pickle',
    'numeval': 1000,
    'numtrain': 5
}]

import sys
starttrial = 0
trials = 5
if len(sys.argv) > 1:
    starttrial = int(sys.argv[1])
    trials = starttrial + 1

evaluate.bigeval(sig_names=['BayesAndTree', 'LCSeqTree', 'Bayes2'],
                 training_streams=config.traces[80]['training'],
                 fpos_eval_streams=config.traces[80]['eval'],
                 fpos_eval_count='5000000',
                 dynamic_workload=dynamic_workload,
                 static_workloads=static_workloads,
                 dynamic_range=[0, 1, 3] + range(5, 21, 5) + [30, 50],
                 starttrial=starttrial,
                 trials=5)
コード例 #4
0
ファイル: run.py プロジェクト: Bletchley13/polygraph
    'numeval': 0,
}

static_workloads = [
    {
        'fname': 'apache', 
        'pickle': config.workloadsdir + 'apache.pickle', 
        'numeval': 1000,
        'numtrain': 5
    }
]

import sys
starttrial=0
trials=5
if len(sys.argv) > 1:
	starttrial=int(sys.argv[1])
	trials = starttrial+1

evaluate.bigeval(
	sig_names=['BayesAndTree', 'LCSeqTree', 'Bayes2'],
	training_streams=config.traces[80]['training'],
	fpos_eval_streams=config.traces[80]['eval'],
	fpos_eval_count='5000000',
	dynamic_workload=dynamic_workload,
	static_workloads=static_workloads,
	dynamic_range=[0,1,3] + range(5,21,5)+[30, 50],
	starttrial=starttrial,
	trials=5
)