Library used to Normalize numerical time-series data
Project description
Memory Retention Normalization - MRN
This Library is used for normalizing data array with respect to long term memory retention
Timeseries Data's have influence of long term memory retention on their current data
This phenomenon happens in the field of finance sports and other live streaming timeseries datas
Developed by Philip Pankaj (c) 2021
##Example with Nasdaq 100 data
#importing our MRN
from MRN import Normalization
#importing all required library
from yahoo_fin.stock_info import get_data
from datetime import date
#getting nifty data and converyting to numpy array
now=date.today().strftime("%d/%m/%Y")
from_date="5/5/2006" # m/d/year
data= get_data("^IXIC", start_date=from_date, end_date=now, index_as_date = True, interval="1d")
data=data['close'].dropna()
data=data.to_numpy()
#initializing MRN and transforming data
mrn=Normalization(data,0.5)
n_data=mrn.transform()
#importing matplotlib and plotting
import matplotlib.pyplot as plt
plt.figure(figsize=(40, 40))
fig, ax1 = plt.subplots()
ax1.set_ylabel('Nasdaq-100')
ax1.plot(data[-1000:], color = 'tab:blue')
ax2=ax1.twinx()
ax2.set_ylabel('MRN-Normalized')
ax2.plot(n_data[-1000:],color='tab:green')
plt.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MRN-0.0.7.tar.gz
(3.0 kB
view details)
Built Distribution
MRN-0.0.7-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file MRN-0.0.7.tar.gz
.
File metadata
- Download URL: MRN-0.0.7.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a435965901f0b332ed17d05ce16443f0e5e3b1ae58ce9025e6991b2e82d749d6 |
|
MD5 | 5025e431c91f434be1086f7f9ccf552c |
|
BLAKE2b-256 | fe2a61a4ce7646595db363ae7e33372d65974538eba4ba41bd358a5b164eee42 |
File details
Details for the file MRN-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: MRN-0.0.7-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3082cf8f223122444d5269af40a07fa7f41bab62318c36111368bcd0c4bc3a7 |
|
MD5 | a181d827c10cde4b9218c28c25247a5f |
|
BLAKE2b-256 | 96d01ded2da6670541fb458959f25b69e3c16cee70498af6ecd822aa88db45de |