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.4.43.tar.gz (96.2 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.4.43-py3-none-any.whl (420.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xin_util-1.4.43.tar.gz
  • Upload date:
  • Size: 96.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for xin_util-1.4.43.tar.gz
Algorithm Hash digest
SHA256 2ed655df66ec32801be8529fb4b39c1cbb9dfda3cf8c4bc0e56e6125d953dd1e
MD5 4708cbe75b7aa84ed4b9658b7c876845
BLAKE2b-256 6d66487d63e92182e5a39d3b47fcd00d14d424a60f08bb9650392b5682013e75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xin_util-1.4.43-py3-none-any.whl
  • Upload date:
  • Size: 420.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for xin_util-1.4.43-py3-none-any.whl
Algorithm Hash digest
SHA256 e6dcbb352fd6b680a9f4f3885a4a09e283d3dc04a44377b85d2104935576b484
MD5 8d88bb1fa6d106d4688db695001bc369
BLAKE2b-256 2a4a14da95de20c61fee5f3a15438ae6f4d906183fd4e614ef234b32cf03fc4a

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