Skip to main content

A probabilistic logic programming library for data science

Project description

Norm = {Neural Object Relational Models}

alt text

When human defines a concept, we compose it with other concepts. When the concept is not accurate, human critic and modify the logic of the composition. However, that is not what the state of the arts AI technology, deep learning practices. Deep neural networks considers the concept as a set of numerical parameters to be optimized with respect to a set of data and an objective function. This black-box approach is difficult for regular human experts to interpret and modify. It requires an experienced neural network architect to fine-tune the parameters constantly.

For example, JayWalk is a new concept that we need to detect for Autonomous Driving Vehicles. The standard procedure is to collect a set of positive and negative images, then train a model to classify this concept. The challenge is that it is difficult to collect positive examples for a complicated concept due to the long tail distribution and the trained model will be less accurate if the data is not enough. However, if we compose the concept based on other well-trained concepts, the chance to obtain a high quality model will be increased significantly.

alt text

    JayWalk(p: Person, r: Road) =
        WalkAcross(p, r) & On(p, z) & Part(r, ?z) & !ZebraCross(z)

If some concepts contain errors that accumulate due to the complex compositions, Norm can alleviate this brittleness effectively by adapting the parameters over a small set of examples. The entire logic program is compiled to a neural network and the power of transfer learning is leveraged.

Representing the AI model in terms of logic forms facilitates the white-box machine learning approach. Domain experts can understand the logical explanation of the model and can argue with the model by looking into the counter-examples. Particularly, domain experts can append the differential logic to the program and test them out. These explanatory and explorative debugging capabilities turn the AI model development into an interactive and collaborative process that fits into most of research agenda in many fields.

In the end, logic program is the closest formal language to human language. Having a natural language parser will enable many more people to benefit the AI development who do not know how to write in a formal language. It will open a door to the Artificial General Intelligence that is capable of human-like reasoning.

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

pynorm-0.1.12.tar.gz (521.7 kB view details)

Uploaded Source

Built Distribution

pynorm-0.1.12-py2.py3-none-any.whl (630.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pynorm-0.1.12.tar.gz.

File metadata

  • Download URL: pynorm-0.1.12.tar.gz
  • Upload date:
  • Size: 521.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for pynorm-0.1.12.tar.gz
Algorithm Hash digest
SHA256 df8d77e52ab18be02839d3e9b8d8ea1a8b8bf4cd21ce8d98ba8eb8b78e174e88
MD5 8eb6620f33b49fad0795c8d02f7fc884
BLAKE2b-256 e376572f23b50efd4864d4bda17a5679296878dce4f43658b320d9ac6ca8146c

See more details on using hashes here.

File details

Details for the file pynorm-0.1.12-py2.py3-none-any.whl.

File metadata

  • Download URL: pynorm-0.1.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 630.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for pynorm-0.1.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b101bc83f5677b761bbb90ec85b4801726380cea83bed59a923c13f3493f5639
MD5 5ceecfe9f086a6e981876bd131e5e632
BLAKE2b-256 942d1f6de392f9a5a5144d896195564963d885525a427cae95e910796cca159e

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