Skip to main content

Xin's self created helper functions

Project description

Xin-util

Simple self-use great functions

Installation

Use the package manager pip to install utilities.

pip install -i https://test.pypi.org/simple/ xin-util

Usage

# regular utilities  
from xin_util.PrettyPrintDict import pretty_print_dict
from xin_util.CreateDIYdictFromDataFrame import CreateDIYdictFromDataFrame
from xin_util.ReadWritePicklefile import read_pickle, save_pickle
from xin_util.DownloadFromS3 import S3_download_folder, S3_upload_folder
from xin_util.BarPlots import plot_stacked_bar
from xin_util.ZipAndUnzip import zip, unzip
from xin_util.AccessSQL import getDBData, create

# TimeSeries  
from xin_util.TimeSeriesFeatureEngineer import TimeSeries, create_average_feature

# NLP related  
from xin_util.TextProcess import text_tokens
from xin_util.ResamplingData import up_resample
from xin_util.Scores import single_label_f_score, single_label_included_score, multiple_label_included_score
from xin_util.TFIDFpredict import tf_idf_classify
from xin_util.EmbeddingCNNpredict import Convolution_Network_classify
from xin_util.EmbeddingRNNpredict import Recurrent_Network_classify
from xin_util.FASTTEXTpredict import fasttext_classify
from xin_util.NBpredict import Naive_Bayes_classify
from xin_util.ONEHOTNNpredict import Onehot_Network_classify
from xin_util.LatentDirichletAllocationClass import MyLDA

# Model training time prediction
from model_trainingtime_prediction.layer_level_utils import get_train_data
from model_trainingtime_prediction.random_network_gen import gen_nn
from model_trainingtime_prediction.train_time_predict import prediction_model

Documentation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

xin_util-1.3.41.tar.gz (79.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xin_util-1.3.41-py3-none-any.whl (395.9 kB view details)

Uploaded Python 3

File details

Details for the file xin_util-1.3.41.tar.gz.

File metadata

  • Download URL: xin_util-1.3.41.tar.gz
  • Upload date:
  • Size: 79.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for xin_util-1.3.41.tar.gz
Algorithm Hash digest
SHA256 55bb5ecef546c55b7b4e0f1cf4f040fe7da4ba75447f17130de0aef970cd2c58
MD5 b45fa4ae5ba6378c2ae2d659b343a464
BLAKE2b-256 7d6fbf1cb175e7eb820d35b3204adb2d9ba54bde418ff68efec563cb9e0b1204

See more details on using hashes here.

File details

Details for the file xin_util-1.3.41-py3-none-any.whl.

File metadata

  • Download URL: xin_util-1.3.41-py3-none-any.whl
  • Upload date:
  • Size: 395.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for xin_util-1.3.41-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8271b7313e09b4566695a47e83d6a5d0c154dd42196b12feb84502a3091d26
MD5 31fd9814f1df4fc0067f56086058082a
BLAKE2b-256 802c4d47026336b1c71bad4e7ecf44b8afcf751b33bf12b2082349bbd09fd6a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page