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.9.tar.gz (259.5 kB view details)

Uploaded Source

Built Distribution

pynorm-0.1.9-py2.py3-none-any.whl (366.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pynorm-0.1.9.tar.gz
  • Upload date:
  • Size: 259.5 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.9.tar.gz
Algorithm Hash digest
SHA256 ecf62b1be4800de28070b08a371f24a2f486ee34dadc2e02f2d9a78ed3556a8b
MD5 e45642428d482167277a080cf2710acb
BLAKE2b-256 9bb336a0bd0e55dde42b38628a93ed4eb6063cdbc5306c9ddb06c76846904e66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pynorm-0.1.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 366.1 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.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b6e88b3ef549d4561578161697a169808d5bbae4fd80278b310412daa2761d9
MD5 59c5c0420af3d1d4c962c406307a78d7
BLAKE2b-256 04daf340e339bbeed9c368ee802e0a6a52772b7a3379a5e0716ab044abeeecc6

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