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

Uploaded Source

Built Distribution

pynorm-0.1.8-py2.py3-none-any.whl (366.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pynorm-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 6b985cc2d2c26efc6fb5bcaf0bf1d627e67e541c4081eeef05b4896b50c3c377
MD5 92f3c44622cbc1c5404ca051c785a85b
BLAKE2b-256 cdb43c1c62680d590fb6db8ce4b3c34116fb88c4549da72d815dd0a21d9f5db9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pynorm-0.1.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 366.0 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.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 05cb8e30c1f533a4e9a616ceec55fbe736a5c48b092fab1c5b8d4fba3963539b
MD5 b8267aefd769befac1531666b46798ea
BLAKE2b-256 8e97fb519cc68dc6eb1a48b2ecaca5e7b8d86fbf24c9426716a967dea7409bbb

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