Python Implementation

Example 1.0

import oas as oracle

data = {
training_data: image_training_data
test_data: image_test_data
}

node_weights = ["34", "34", "34", "5", "5"]
node_profile = "13748"

# Configure Oracle Engine
engine = oracle(data, node_inputs, node_outputs, node_profile)
engine.set_node(5, custom_cnn_path)

# Runs training and testing for models in each node
model = engine.train()

# reduce the number of models and data content based on engine training result
model.optimize()

# Use trained oracle model 
result = model.run(demo_data)

print(result)

Graph showing the results of example 1.0. This is an oracle engine designed with the following nodes

  1. 3 beta nodes

  2. 2 bagels

  3. 1 alpha node

Last updated