Skip to main content

Select and score features for causal inferences.

Project description

This package has two interfaces:

  1. score_vocab(): Given text (T), vocab (V), outcome(s) Y, and confound(s) (C), this method will score each element of the vocab according to how well it explains each Y, controlling for all of the C’s.

  2. evaluate_vocab(): Measure’s the strength of a vocab’s causal effects on Y (controlling for C).

(c) Reid Pryzant 2019 https://cs.stanford.edu/~rpryzant/ May be used and distributed under the MIT license.

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

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

Source Distribution

causal_attribution-1.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

causal_attribution-1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file causal_attribution-1.1.tar.gz.

File metadata

  • Download URL: causal_attribution-1.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

File hashes

Hashes for causal_attribution-1.1.tar.gz
Algorithm Hash digest
SHA256 d659a61b8eaaaed3f5a178e8b4dbabe48f9517e3ef88c321e3780bb3d7473be8
MD5 dd2c097fae40ef0fd81b788c48fd10e7
BLAKE2b-256 eac0ae3d77ec4a8087be751ef741ca4c25bd1394108ff74cac1a747c2f79221d

See more details on using hashes here.

File details

Details for the file causal_attribution-1.1-py3-none-any.whl.

File metadata

  • Download URL: causal_attribution-1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

File hashes

Hashes for causal_attribution-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 faa55d9eddca5017524de9116dc5693489866cda80c9478bb4e8a96538867c9f
MD5 32a5c8f7e277d4be22170fa065a44b01
BLAKE2b-256 241503e9c66654a71b29598ec187dcb9fc9fee694d92815893649defbffd2f89

See more details on using hashes here.

Supported by

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