Commit graph

15 commits

Author SHA1 Message Date
Devdutt Shenoi
20f590b726
[python] code quality improvements (#1745)
* Add DeepSource config

* Simplify if statement

* Refactor use of dict() with empty literal

* Use set comprehension syntax

* Refactor chained comparison

* Rewrite instances of list literal within set() as set literals

* Add test_slow to class definition
2020-12-08 15:35:54 -08:00
quant9
e41ed25646
add option to disable Newton fallback via set_options method (#1702) 2020-10-08 11:13:21 -07:00
Chris Benson
98f2a7be18
Fix Issue with Pickling Models in Python3.6 because of Logger Attribute (#1452)
* Fix issue with pickeling models due to logger

* Fixes Model Pickle Error in Python3.6 as described in #1361
2020-04-28 12:30:31 -07:00
Mitzi Morris
d22922d08c
sampling iters arg name, logic changes (#1389)
* sampling iters arg name, logic changes

* Bump cmdstanpy version in requirements to 0.9.5

* Change Model to CmdStanModel

Co-authored-by: Ben Letham <bletham@gmail.com>
2020-03-24 14:33:52 -07:00
Ryan Nazareth
0ca50cfb7f
Extract stanfit from model object in Py following cmdstanpy refactoring (#1353)
* add self.stan_fit in fit methods

* small changes to fix tests

* make changes to remove self.params from backend classes
2020-03-06 18:11:04 -08:00
Ram Rachum
952b544928
Fix exception causes in 2 modules (#1370)
Co-authored-by: Ben Letham <bletham@gmail.com>
2020-03-03 17:34:06 -08:00
Sean Taylor
101dd50e31 Delay some imports to allow installation w/o deps 2020-02-17 17:20:20 -08:00
Christopher Suchanek
1d18adc0ba
Replaced pystan with cmdstanpy (#1083)
* changes

* added actual tests for fit method

* precision

* syntax

* sampling not working

* sampling seems to work

* sampling not working again

* sampling works, tests to be removed

* replaced data with rmse

* replace pystan with cmdstanpy

* cleanup

* cleanup

* test for newton

* added support for multiple backends

* minor fixes

* fixed comment

* added support for --test-slow flag

* fixed import

* reverted style change

* specify backend based on env variable

* fixes

* PR fixes
2020-02-07 14:34:08 -08:00
Ben Letham
7ff33137eb Change to MIT license 2019-05-21 11:40:04 -07:00
Mpho Mphego
f16e22731f Update and rename README to README.md and Unicode strings (#766)
* Update and rename README to README.md and Unicode strings

Updated Readme file and converted from rst to markdown.
String contains ascii characters (converted to unicode string)

Signed-off-by: Mpho Mphego mpho112@gmail.com

* Deprecated import `from __future__ import unicode_literals` removed and ran isort module
https://mail.python.org/pipermail/python-dev/2016-December/147009.html

Included setuptool-git in the requirement.txt and updated `setup.py`
Reasons for this are highlighted here -> https://github.com/msabramo/setuptools-git#usage
2018-12-20 15:33:23 -08:00
bl
f8775433c9 Remove vestigial comments, structure imports 2018-05-30 16:35:17 -07:00
Ben Letham
55d7d1e62d Single stan model with both trends (Py) 2018-05-04 16:04:29 -07:00
Ben Letham
230b2ca6e0 Lint fixes 2017-09-25 17:34:27 -07:00
Ben Letham
5474fe3bd3 style/comment fixes 2017-05-03 17:06:20 -07:00
Ben Letham
5971a2369b Loop debug (#168)
* Load Stan models on package load and keep in environment

* Load models on package import
2017-04-13 23:23:44 -07:00