Skip to main content

Consult the module API page at

https://engineering.purdue.edu/kak/distCGP/ComputationalGraphPrimer-1.1.5.html

for all information related to this module, including information related to the latest changes to the code.

from ComputationalGraphPrimer import *

cgp = ComputationalGraphPrimer(
               expressions = ['xx=xa^2',
                              'xy=ab*xx+ac*xa',
                              'xz=bc*xx+xy',
                              'xw=cd*xx+xz^3'],
               output_vars = ['xw'],
               dataset_size = 10000,
               learning_rate = 1e-6,
               grad_delta    = 1e-4,
               display_vals_how_often = 1000,
      )

cgp.parse_expressions()
cgp.display_network1()
cgp.gen_gt_dataset(vals_for_learnable_params = {'ab':1.0, 'bc':2.0, 'cd':3.0, 'ac':4.0})
cgp.train_on_all_data()
cgp.plot_loss()

Metadata

Release files for ComputationalGraphPrimer 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ComputationalGraphPrimer 1.1.5
File Size Uploaded
computationalgraphprimer-1.1.5.tar.gz 80.4 kB Details

Release files / computationalgraphprimer-1.1.5.tar.gz

Download URL computationalgraphprimer-1.1.5.tar.gz
Size 80.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ca0b451fd2a92d8f835302b63dfee218ab5b5f39b3e2cb0fb2206b262b667116
BLAKE2b-256 checksum
How to use checksums
a97063d5e06bb20f59be8e45ee9f40792d9ca1efe4ae18d2b45ab0bd53cb53d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.1.5 This release

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page