Prism
probabilistic logic programming language for statistical modeling
Install / Use
/learn @prismplp/PrismREADME
PRISM: PRogramming In Statistical Modeling
PRISM is a general programming language intended for symbolic-statistical modeling. It is a new and unprecedented programming language with learning ability for statistical parameters embedded in programs. Its programming system is a powerful tool for building complex statistical models.
For the papers or additional information on PRISM, please visit http://rjida.meijo-u.ac.jp/prism/ .
Tutorials
Installation
1. Download pre-build package from release page:
If you want to install the latest development version package pre-built with the latest version of ubuntu (the latest version from github is automatically built), you can install it with the following command.
wget "https://github.com/prismplp/prism/releases/download/v2.4.2a(T-PRISM)-prerelease/prism_linux_dev.auto.tar.gz"
2. Extract binaries and sample programs.
If you downloaded a different release version, please change the file name and unzip it in the same way.
tar xvf prism_linux_dev.auto.tar.gz
3. Setting the proper environmental variable:
export PATH=<current directory>/prism/bin:${PATH}
4. Try!
$ prism
Press Ctrl+D to quit the interactive mode.
Contents of the Package
This is a software package of PRISM version, a logic-based programming system for statistical modeling, which is built on top of B-Prolog (http://www.probp.com/). Since version 2.0, the source code of the PRISM part is included in the released package. Please use PRISM based on the agreement described in LICENSE and LICENSE.src.
- LICENSE ... license agreement of PRISM
- LICENSE.src ... additional license agreement on the source code of PRISM
- bin/ ... executables
- doc/ ... documents
- src/ ... source code
- exs/ ... example programs
For the files under each directory, please read the README file in the directory.
PyPRISM: Python interface to PRISM
Please see: https://github.com/prismplp/pyprism
T-PRISM: Tensorized-PRISM (Pre-release)
T-PRISM is a new logic programming language based on tensor embeddings. Our embedding scheme, named tensorized semantics, is a modification of the distribution semantics in PRISM, one of the state-of-the-art probabilistic logic programming languages, by replacing distribution functions with multidimensional arrays.
API Documents: https://prismplp.github.io/prism/tprism/tprism.html
@article{kojima2019tensorized,
title={A tensorized logic programming language for large-scale data},
author={Kojima, Ryosuke and Sato, Taisuke},
journal={arXiv preprint arXiv:1901.08548},
year={2019}
}
T-PRISM Installation
Requirements: PRISM, python(Recommendation: Anaconda) and Pytorch.
- Anaconda: https://www.anaconda.com/
- Pytorch: https://pytorch.org/
Please Install T-PRISM by the following command:
pip install "git+https://github.com/prismplp/prism.git#egg=t-prism&subdirectory=bin"
Please see the details in T-PRISM manual.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
