Skip to main content

ns_gradient

This package is used to calculate the gradients of a shifted column of dataset to form a rows

  column_0 column_1 column_2 column_3 column_4 column_5
0  0.05601      NaN      NaN      NaN      NaN      NaN
1  0.08611  0.05601      NaN      NaN      NaN      NaN
2  0.05125  0.08611  0.05601      NaN      NaN      NaN
3  0.02576  0.05125  0.08611  0.05601      NaN      NaN
4  0.01776  0.02576  0.05125  0.08611  0.05601      NaN

Usage

Once installed ns_gradient can be imported and functions called like so:

import pandas as pd
from ns_gradient.nsgrads import Nsgrads, calculator
df = pd.read_csv('./src/ns_gradient/all_sigs_df.csv')
df.drop(['Unnamed: 0'], axis=1, inplace=True)

result = calculator(dataset=df, periods=20, column='close')

print(result.get('gradients_mean')) # to get the mean
print(result.get('dataset')) # to retrieve data used to calculate the gradients
print(result.get('gradients')) # to get the vector gradients

Metadata

Release files for ns-gradient 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ns-gradient 0.0.2
File Size Uploaded Provenance
ns_gradient-0.0.2.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ns-gradient 0.0.2
File Interpreter ABI Platform
ns_gradient-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / ns_gradient-0.0.2.tar.gz

Download URL ns_gradient-0.0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4f4f762564217852cb5e49814c8ad2fd28c01a74b9e819e7cf59712c60d1c955
BLAKE2b-256 checksum
How to use checksums
4aa17955ca984a489bff09ec15bf2d5e22514bf384727994cfc675ae63e46cf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.4

Release files / ns_gradient-0.0.2-py3-none-any.whl

Download URL ns_gradient-0.0.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed39348b85b9e6f57188d64b2c4ae4395283875fcd4182f747b33ffcb29355e0
BLAKE2b-256 checksum
How to use checksums
059b268fb33dd091d990105a157fbbf8f86715d0fef2c71fe3e6c7d33cf03ff3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.4

Security for ns-gradient 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page