Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

pystan

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pystan - npm Package Compare versions

Comparing version
3.3.0
to
3.4.0
+7
-5
PKG-INFO
Metadata-Version: 2.1
Name: pystan
Version: 3.3.0
Version: 3.4.0
Summary: Python interface to Stan, a package for Bayesian inference

@@ -9,3 +9,3 @@ Home-page: https://mc-stan.org

Author-email: riddella@indiana.edu
Requires-Python: >=3.7,<4.0
Requires-Python: >=3.8,<4.0
Classifier: Intended Audience :: Science/Research

@@ -15,9 +15,11 @@ Classifier: License :: OSI Approved

Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: aiohttp (>=3.6,<4.0)
Requires-Dist: clikit (>=0.6,<0.7)
Requires-Dist: httpstan (>=4.6,<4.7)
Requires-Dist: numpy (>=1.7,<2.0)
Requires-Dist: httpstan (>=4.7,<4.8)
Requires-Dist: numpy (>=1.19,<2.0)
Requires-Dist: pysimdjson (>=3.2,<4.0)
Requires-Dist: setuptools
Project-URL: Documentation, https://pystan.readthedocs.io

@@ -24,0 +26,0 @@ Project-URL: Repository, https://github.com/stan-dev/pystan

[tool.poetry]
name = "pystan"
version = "3.3.0"
version = "3.4.0"
description = "Python interface to Stan, a package for Bayesian inference"

@@ -25,8 +25,9 @@ authors = [

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
aiohttp = "^3.6"
httpstan = "~4.6"
httpstan = "~4.7"
pysimdjson = "^3.2"
numpy = "^1.7"
numpy = "^1.19"
clikit = "^0.6"
setuptools = "*"

@@ -39,5 +40,6 @@ [tool.poetry.dev-dependencies]

autoflake = "^1.4"
black = "^20.8b1"
isort = "^5.4"
mypy = "0.812"
black = "22.1.0"
isort = "^5.9"
mypy = "0.910"
types-setuptools = "^57.4"
flake8 = "^3.9"

@@ -44,0 +46,0 @@ # documentation

@@ -13,9 +13,10 @@ # -*- coding: utf-8 -*-

'clikit>=0.6,<0.7',
'httpstan>=4.6,<4.7',
'numpy>=1.7,<2.0',
'pysimdjson>=3.2,<4.0']
'httpstan>=4.7,<4.8',
'numpy>=1.19,<2.0',
'pysimdjson>=3.2,<4.0',
'setuptools']
setup_kwargs = {
'name': 'pystan',
'version': '3.3.0',
'version': '3.4.0',
'description': 'Python interface to Stan, a package for Bayesian inference',

@@ -31,3 +32,3 @@ 'long_description': '******\nPyStan\n******\n\n**PyStan** is a Python interface to Stan, a package for Bayesian inference.\n\nStan® is a state-of-the-art platform for statistical modeling and\nhigh-performance statistical computation. Thousands of users rely on Stan for\nstatistical modeling, data analysis, and prediction in the social, biological,\nand physical sciences, engineering, and business.\n\nNotable features of PyStan include:\n\n* Automatic caching of compiled Stan models\n* Automatic caching of samples from Stan models\n* An interface similar to that of RStan\n* Open source software: ISC License\n\nGetting started\n===============\n\nInstall PyStan with ``pip install pystan``. PyStan requires Python ≥3.7 running on Linux or macOS. You will also need a C++ compiler such as gcc ≥9.0 or clang ≥10.0.\n\nThe following block of code shows how to use PyStan with a model which studied coaching effects across eight schools (see Section 5.5 of Gelman et al (2003)). This hierarchical model is often called the "eight schools" model.\n\n.. code-block:: python\n\n import stan\n\n schools_code = """\n data {\n int<lower=0> J; // number of schools\n real y[J]; // estimated treatment effects\n real<lower=0> sigma[J]; // standard error of effect estimates\n }\n parameters {\n real mu; // population treatment effect\n real<lower=0> tau; // standard deviation in treatment effects\n vector[J] eta; // unscaled deviation from mu by school\n }\n transformed parameters {\n vector[J] theta = mu + tau * eta; // school treatment effects\n }\n model {\n target += normal_lpdf(eta | 0, 1); // prior log-density\n target += normal_lpdf(y | theta, sigma); // log-likelihood\n }\n """\n\n schools_data = {"J": 8,\n "y": [28, 8, -3, 7, -1, 1, 18, 12],\n "sigma": [15, 10, 16, 11, 9, 11, 10, 18]}\n\n posterior = stan.build(schools_code, data=schools_data)\n fit = posterior.sample(num_chains=4, num_samples=1000)\n eta = fit["eta"] # array with shape (8, 4000)\n df = fit.to_frame() # pandas `DataFrame`\n\n\nCitation\n========\n\nWe appreciate citations as they let us discover what people have been doing\nwith the software. Citations also provide evidence of use which can help in\nobtaining grant funding.\n\nTo cite PyStan in publications use:\n\nRiddell, A., Hartikainen, A., & Carter, M. (2021). PyStan (3.0.0). https://pypi.org/project/pystan\n\nOr use the following BibTeX entry::\n\n @misc{pystan,\n title = {pystan (3.0.0)},\n author = {Riddell, Allen and Hartikainen, Ari and Carter, Matthew},\n year = {2021},\n month = mar,\n howpublished = {PyPI}\n }\n\nPlease also cite Stan.\n',

'install_requires': install_requires,
'python_requires': '>=3.7,<4.0',
'python_requires': '>=3.8,<4.0',
}

@@ -34,0 +35,0 @@

@@ -97,3 +97,3 @@ import collections

assert self.sample_and_sampler_param_names and self._draws.size
self._draws.flags["WRITEABLE"] = False
self._draws.flags["WRITEABLE"] = False # type: ignore

@@ -100,0 +100,0 @@ def __contains__(self, key):