Skip to main content

A collection of statistics and machine learning libraries under the bongsang package

Project description

bongsang

A collection of statistics and machine learning libraries developed by Bongsang Kim, including a linear regression class similar to R's lm function.

Installation

pip install bongsang


## Accessing Sample Datasets

The `bongsang.datasets` subpackage provides sample datasets for easy experimentation.

### Example:

```python
from bongsang.datasets import load_house

# Load the house dataset
df = load_house()

# Now you can use df with the LM class
from bongsang import lm

X = df[['size']]
y = df['price']

model = lm.LM(X, y)
model.fit()
model.summary()
model.plot()
==============================================================
Linear Regression Summary
X features:  ['size']
y target:  price
______________________________________________________________
Residuals:
    Min      1Q  Median      3Q     Max
 -49.388  -27.388   -6.388   29.577   64.333

Coefficients:
             Estimate  Std. Error  t value  Pr(>|t|)
(Intercept)   98.24833   58.03348    1.693    0.1289
size           0.10977    0.03297    3.329    0.0104 *

Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 41.33 on 8 degrees of freedom
Multiple R-squared:  0.5808,    Adjusted R-squared:  0.5284
F-statistic: 11.08 on 1 and 8 DF,  p-value: 0.01039
==============================================================

Sample

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

bongsang-0.1.5.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

bongsang-0.1.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file bongsang-0.1.5.tar.gz.

File metadata

  • Download URL: bongsang-0.1.5.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for bongsang-0.1.5.tar.gz
Algorithm Hash digest
SHA256 abcc07b31365feadb8979f5fdea8e545602ee464d13ac364298341fae3596bcf
MD5 30c211adb7b3e5cd86e10c792a0e6b85
BLAKE2b-256 20e52703e5da894c086e85bc391d984f3fe222cb55c86544a654d8778029c039

See more details on using hashes here.

File details

Details for the file bongsang-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: bongsang-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for bongsang-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7d76ad18ed35affe2c5d6bd142e309dfc867a47ed50a441046fdf62a63a22e63
MD5 e4cee7d979bc6b3f1cb0ab7ee494b8f7
BLAKE2b-256 abdf8fcfc2c7953b6c11042b1ff272d45e6bd3db41bc0e47c7c86838c57cdbc3

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