MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / evaluate_simple_evaluator

Function evaluate_simple_evaluator

ciphercore-base/src/evaluators.rs:148–156  ·  view source on GitHub ↗
(
    graph: Graph,
    inputs: Vec<Value>,
    prng_seed: Option<[u8; SEED_SIZE]>,
)

Source from the content-addressed store, hash-verified

146}
147
148pub fn evaluate_simple_evaluator(
149 graph: Graph,
150 inputs: Vec<Value>,
151 prng_seed: Option<[u8; SEED_SIZE]>,
152) -> Result<Value> {
153 let mut evaluator = simple_evaluator::SimpleEvaluator::new(prng_seed)?;
154 evaluator.preprocess(graph.get_context())?;
155 evaluator.evaluate_graph(graph, inputs)
156}
157
158/// Evaluate a given graph on a given set of inputs with a random PRNG seed.
159pub fn random_evaluate(graph: Graph, inputs: Vec<Value>) -> Result<Value> {

Callers 7

random_evaluateFunction · 0.85
evaluate_join_helperFunction · 0.85
concatenate_helperFunction · 0.85
print_helperFunction · 0.85
assert_helperFunction · 0.85

Calls 3

preprocessMethod · 0.80
evaluate_graphMethod · 0.80
get_contextMethod · 0.45

Tested by

no test coverage detected