Skip to main content

image

Scattering Compositional Learner

PyTorch implementation of Scattering Compositional Learner [1] for solving Raven's Progressive Matrices.

Setup

$ pip install scattering_compositional_learner

Usage

import torch

from scattering_compositional_learner import ScatteringCompositionalLearner

x = torch.rand(4, 16, 160, 160)
scl = ScatteringCompositionalLearner(image_size=160)
logits = scl(x)
y_hat = logits.log_softmax(dim=-1)
y_hat  # torch.Tensor with shape (4, 8)

Unit tests

$ python -m pytest tests

Alternative implementations

The same model was additionally implemented by:

Bibliography

[1] Wu, Yuhuai, et al. "The Scattering Compositional Learner: Discovering Objects, Attributes, Relationships in Analogical Reasoning." arXiv preprint arXiv:2007.04212 (2020).

Citations

@article{wu2020scattering,
  title={The Scattering Compositional Learner: Discovering Objects, Attributes, Relationships in Analogical Reasoning},
  author={Wu, Yuhuai and Dong, Honghua and Grosse, Roger and Ba, Jimmy},
  journal={arXiv preprint arXiv:2007.04212},
  year={2020}
}

Release files for scattering-compositional-learner 0.1.0

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

Source distribution (sdist)

Source distribution for scattering-compositional-learner 0.1.0
File Size Uploaded
scattering_compositional_learner-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scattering-compositional-learner 0.1.0
File Interpreter ABI Platform
scattering_compositional_learner-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / scattering_compositional_learner-0.1.0.tar.gz

Download URL scattering_compositional_learner-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
76591875c09dccf01ee5f06a841b350357f6f5678da616ccf2a55e3ee76dc7cd
BLAKE2b-256 checksum
How to use checksums
90d4fbfa96dd29e24eabaebb1024a9b707cf333aa2516193807e75dbce69a7cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release files / scattering_compositional_learner-0.1.0-py3-none-any.whl

Download URL scattering_compositional_learner-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d3c3d17f13b3ddb56b9a542552a4c02f87c9e4202a6993b07cf5d777377fa14
BLAKE2b-256 checksum
How to use checksums
496b3f309d8a25d6f937f27bd28773bf6794fb6ac0053bd8da29ecf9b6bc5160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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