Skip to main content

Tools for classical connectionist models of reading with TensorFlow

Project description

Connectionist

Pypi version License Docs

Connectionist contains some tools for classical connectionist models of reading in TensorFlow. This project is a course companion python library for Contemporary neural networks for cognition and cognitive neuroscience.

Features

  • Ready-to-use models of reading in TensorFlow
  • Various "brain" (model) damaging APIs
  • Basic building blocks (layers) for connectionist models

Requirements

  • Python >=3.8
  • TensorFlow >=2.9

Installation

pip install connectionist

Quick start

End-to-end toy example with Plaut, McClelland, Seidenberg and Patterson (1996), simulation 3 model:

import tensorflow as tf
from connectionist.data import ToyOP
from connectionist.models import PMSP

data = ToyOP()
model = PMSP(tau=0.2, h_units=10, p_units=9, c_units=5)
model.compile(
    optimizer=tf.keras.optimizers.Adam(),
    loss=tf.keras.losses.BinaryCrossentropy(),
)
model.fit(data.x_train, data.y_train, epochs=3, batch_size=20)
model(data.x_train)

Documentation

https://jasonlo.github.io/connectionist/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

connectionist-0.2.5.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

connectionist-0.2.5-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file connectionist-0.2.5.tar.gz.

File metadata

  • Download URL: connectionist-0.2.5.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for connectionist-0.2.5.tar.gz
Algorithm Hash digest
SHA256 922477830352e3d62bed8a0d2323f8e2a27852338522e5826e924d0e21a346d9
MD5 1820e8820a936dde8e01d8981a83a81c
BLAKE2b-256 7671bdb70300476bfa892772ded79792798b2d6a0665c551feb5665d04a0f137

See more details on using hashes here.

File details

Details for the file connectionist-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: connectionist-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for connectionist-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1ab815862553586f978184af694bf0fea6ef2574d766dba0d273ceb6c407b115
MD5 3173400ed359b08fe99fdc70ab40daed
BLAKE2b-256 7ba3e8f8c56a5844dd78d4aa59dd99dd8a9379ea5b16ee4b74afce5287a3bc3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page