Saravanan666/pypi-org huggingface dataset:
Package: biva-pytorch
BIVA (PyTorch)Official PyTorch BIVA implementation (BIVA: A Very Deep Hierarchy of Latent Variables forGenerative Modeling) for binarized MNIST and CIFAR. The original Tensorflow implementation can be foundhere.run the experimentscondacreate--namebivapython=3.7
condaactivatebiva
pipinstall-rrequirements.txtCUDA_VISIBLE_DEVICES=0pythonrun_deepvae.py--datasetbinmnist--q_dropout0.5--p_dropout0.5--devicecudaCUDA_VISIBLE_DEVICES=0pythonrun_deepvae.py--datasetcifar10--q_dropout0.2--p_dropout0--devicecudaCitation@article{maale2019biva,
    title={BIVA: A Very Deep Hierarchy of Latent Variables for Generative Modeling},
    author={Lars Maaløe and Marco Fraccaro and Valentin Liévin and Ole Winther},
    year={2019},
    eprint={1902.02102},
    archivePrefix={arXiv},
    primaryClass={stat.ML}
}Pip packageinstall requirementspytorch 1.3.0torchvisionmatplotlibtensorboardbooster-pytorch==0.0.2install packagepipinstallgit+https://github.com/vlievin/biva-pytorch.gitbuild deep VAEsimporttorchfromtorch.distributionsimportBernoullifrombivaimportDenseNormal,ConvNormalfrombivaimportVAE,LVAE,BIVA# build a 2 layers VAE for binary images# define the stochastic layersz=[{'N':8,'kernel':5,'block':ConvNormal},# z1{'N':16,'block':DenseNormal}# z2]# define the intermediate layers# each stage defines the configuration of the blocks for q_(z_{l} | z_{l-1}) and p_(z_{l-1} | z_{l})# each stage is defined by a sequence of 3 resnet blocks# each block is degined by a tuple [filters, kernel, stride]stages=[[[64,3,1],[64,3,1],[64,3,2]],[[64,3,1],[64,3,1],[64,3,2]]]# build the modelmodel=VAE(tensor_shp=(-1,1,28,28),stages=stages,latents=z,dropout=0.5)# forward pass and data-dependent initializationx=torch.empty((8,1,28,28)).uniform_().bernoulli()data=model(x)# data = {'x_' : p(x|z), z \sim q(z|x), 'kl': [kl_z1, kl_z2]}# sample from priordata=model.sample_from_prior(N=16)# data = {'x_' : p(x|z), z \sim p(z)}samples=Bernoulli(logits=data['x_']).sample()
Package: bivium
Bivium - Two-way Enum-like lookupspip install biviumBivium is a enum-like immutable object you can inherit from to define two-way lookups.
Create a class like this:frombiviumimportBiviumclassTest(Bivium):A=1B=2C=3Then, you can do lookups on the data like this:Test.A# 1Test["A"]# 1Test(1)# ABivium does not recognize dunder or sunder methods (i.e. __abc__ or _abc_)
or anything that looks like it, so this will not work:classTest(Bivium):_A_=1# nope__A__=1# double nopeYou can set the optional_default_key_and_default_value_attributes, which will be returned
if no keys or values are found when usingTest[key]orTest(value)respectively.classTest(Bivium):A=1B=2C=3_default_key_="foo"_default_value_="bar"Test["X"]# "foo"Test("Y")# "bar"If they are not set, ValueErrors are raised for missing data.
Attribute access (e.g.Test.A) will always raise an error for missing data.There is also and alternative mutable version of Bivium, which behaves more like a dict.
It implements all container type methods, and some of them also in the reverse direction.from bivium import BiviumAlt
from bivium.alt import BiviumThis version should be instantiated:test=Bivium({"A":1,"B":2},C=3)Notice that you can use both a mapping or kwargs to instantiate the Bivium.
Note that a KeyError will be raised if you try to pass the same key in the mapping and kwargs.Also, if any keys in the mapping or kwargs have the same value, the init will raise a ValueError.
Similalry, ValueErrors will be raised later if you try to add a value under some key which already is the value for some other key.Bivium alt still has_default_key_and_default_value_, but you should probably use.get()and.rget()methods instead.
Package: bix-analysis-libraries
Analysis Librariespython -m pip install bix-analysis-librariesAn assortment of analysis libraries.ComponentsThere are two components of the libraries divided by experiment type. Each component has a data prep module to prepare the data from different software into a canonical form. The prepared data can then be analyzed with the analysis modules (to be added).UseToimportthe modules use the formfrombix_analysis_libraries[.<component>]import<module># orimportbix_analysis_libraries[.<component>].<module>where<component>is the name of the component (if needed) and<module>is the name of the module. Any modules in the Standard Component do not require a component name, while modules in all other components do.Examplesfrombix_analysis_librariesimportbix_standard_functionsasbsf# orimportbix_analysis_libraries.bix_standard_functionsasbsffrombix_analysis_libraries.dark_biasimportbix_dark_bias_data_prepasdbdp# orimportbix_analysis_libraries.dark_bias.bix_dark_bias_data_prepasdbdpStandard ComponentNo component requriedContains standard functions.Bix Standard FunctionsProvides standard functions.Pero Pipes componentComponent name:pero_pipesData PrepModule name:data_prepGeneral data prep used in the Pero Pipes project.PL componentComponent name:plPL Data PrepModule name:pl_data_prepCalibrating PL data.PL AnalysisModule name:pl_analysisHETF analysis of PL spectra.EQE componentComponent name:eqeEQE AnalysisModule name:eqe_analysisEQE data analysis.EQE componentComponent name:eqeEQE AnalysisModule name:eqe_analysisEQE data analysis.Dark Bias componentComponent name:dark_biasContains data prep for Dark Bias experiments.Bix Dark Bias Data PrepModule name:bix_dark_bias_data_prepData prep for MPP tracking and JV data obtained using theEasy Biologiclibrary.Temperature Degradation componentComponent name:temperature_degradationContains data prep for Temperature Degradation experiments.Temperature Degradation Data PrepModule name:temperature_degradation_data_prepData prep for MPP tracking and JV data.
Package: bixi
Bixi: By its nature it likes to carry heavy weightsProject sitehttps://github.com/zibuyu1995/BixiIssueshttps://github.com/zibuyu1995/Bixi/issues/Documentationtodo…..AuthorMousse(zibuyu1995@gmail.com)Latest Version1.0Python versions3.6 or aboveKeywordsasync, task queueInstallationYou can install Bixi either via the Python Package Index (PyPI) or from source.To install usingpip:$pipinstall-UbixiRun example$bixi--appexample.timer.apprunFAQI shut my eyes and tried to go to sleep.
Package: bixin
bixinChinese Sentiment Analysis base on dictionary and rules.CHANGELOGprior to v0.0.4, bixin depends oncppjieba-py, which requires a c++ 11 compillation makes hard to use, I decided to usejieba_fast.it will solve the following problems:hard to install the dependencycppjieba-pycan't load user dictionaryword segment difference fromjiebabut it slower than usecppjieba-pyInstallation> pip3 install bixinUsagefrombixinimportpredicttext="幸福每时每刻都会像路边的乞丐一样出现在你面前。要是你觉得你所梦想的幸福不是这样的，因而断言你的幸福已死亡，你只接受符合你的原则和心愿的幸福，那么你就会落得不幸。"# 出自安德烈·纪德《人间食粮》predict(text)# sentiment score: 0.42sentiment score is in the range of -1 to 1predictwill load dictionary data at first time,to load it manually usepredict.classifier.initialize()AccuracyTest with 6226 taged corpus mixed up with  shopping reviews 、Sina Weibo tweets 、hotel reviews 、news and financial newsaccuracy:0.827771Notice:neutral texts are all ignored.details about test dataset see wiki关于测试数据集Development> pip3 install -e ".[dev]" git+https://github.com/bung87/bixin./dictionaries dictionaries from vary sources
./data processed dictionaries through ./scripts/tagger.py
./scripts/release_data.py release data to package./scripts/score.pyall data archives:https://github.com/bung87/bixin/releases/tag/v0.0.1run accuray testing with all .txt files undertest_datadirectory sentence per line end with a space and a tagnorpTestnosetests -c nose.cfgfor single python versiontoxfor multiple python versionsAcknowledgmentsbixin was inspired bydongyuanxin'sDictEmotionAlgorithmLicenseMIT ©bung
Package: bixomix
Bixomixbixomixis a collection of SQLAlchemy mixins.SupportPython 3.9+SQLAlchemy 2.0+UsageAdd mixins after theBaseclass in each model’s parent classes. The order of the mixins doesn’t matter.fromsqlalchemy.ormimportDeclarativeBasefrombixomiximportCreatedAtMixinclassBase(DeclarativeBase):passclassMyModel(Base,CreatedAtMixin):# Add your own fields here...MixinsCreatedAtMixin: add acreated_atdatetime field that’s automatically filled with the record’s creation dateUpdatedAtMixin: add anupdated_atdatetime field that’s automatically filled with the record’s last update dateCreatedUpdatedAtMixin: combined version of the previous two mixins
Package: bixor
InstallLinuxpython3 -m pip install bixorWindowspython -m pip install bixorAuthorDiscord:Lactua#1806Github:https://github.com/lactuaDocumentationEncryptTo encrypt a string with Bixor, you need in a first time import bixor.import bixorEncryption needs akey, and acontent. The key allows you to decrypt the content in the future, it's like a password to get acces to your content.To encrypt you have to call the functionencryptand put the content and the key in parameters.Example :import bixor
  
  content = 'hello'
  key = 'world'

  encrypted = bixor.encrypt(content, key)

  print(encrypted)Output :1111110 1011100 1001010 1100011 1111001DecryptTo encrypt a string with Bixor, you need in a first time import bixor.import bixorDecryption needs akey, and anencrypted binary. The key allows you to decrypt the encrypted binary.To decrypt you have to call the functiondecryptand put the encrypted binary and the key in parameters.Example :import bixor
  
  encrypted_binary = '1111110 1011100 1001010 1100011 1111001'
  key = 'world'

  decrypted = bixor.encrypt(encrypted_binary, key)

  print(decrypted)Output :hello
Package: bizarro
.o8        o8o
"888        `"'
 888oooo.  oooo    oooooooo  .oooo.   oooo d8b oooo d8b  .ooooo.  
 d88' `88b `888   d'""7d8P  `P  )88b  `888""8P `888""8P d88' `88b
 888   888  888     .d8P'    .oP"888   888      888     888   888
 888   888  888   .d8P'  .P d8(  888   888      888     888   888
 `Y8bod8P' o888o d8888888P  `Y888""8o d888b    d888b    `Y8bod8P'Bizarro=======================================
Bizarro is a python library for Facebook Messenger Bot. It's basic task is to help developers creating payloads for Facebook Messenger Bot.
Facebook has different templates and buttons for their Messenger Platform. However, it's extremely tedious to write the payload every time. Bizarro here can help you to write awesome bot without
worrying about the payload. All you need to do is send the necessary text inputs and bizarro's function will return the appropriate payload for you.
Bizarro takes help of one of my other python package -Zathura, (A sqlite3 logger I wrote for one of my package).
Currently, the library is in alpha version.How to InstallIt's a pypi package (https://pypi.org/project/bizarro/). Sopip install bizarroCurrent supportRight now, bizarro has support for the followingEcho Back (Simple text reply)Quick ReplyTyping OnMarked SeenButtonPostback ButtonUrl ButtonCall ButtonTemplateButton TemplateGeneric TemplateList TemplateAttachment sending is not enabled in any other buttons or template right now. They will be rolled out in upcoming versions.How to work with bizarroSuppose you want to send user a simple "Hello"echo_text = bizarro_utility().basic_text_reply_payload(fb_user_id, message="Hello")now all you have to do is, send the payloadecho_textwith your page_access_token.
Code examples are coming soon.Thank you, Ibtehaz, December 09, 2019
Package: bizchat
( " client-server socket chat" )Quick startInstallingTo install the library to your bot, run the command:pip install bizchatTo install the repository, run the command:UsageBasic Usage.. code:: pyfrom socket import*
import socketdef server():hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname)
print(hostname, local_ip)
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
address = input("enter address :  ")
port = int(input("Enter Port : "))
server.bind((address, port))
server.listen()
print("server listening...")
connection, address = server.accept()
print("connected to client...")

while True:
    data = input("server : ")
    connection.send(bytes(data, 'utf-8'))
    recdata = connection.recv(1024).decode()
    print('client : ', recdata)def client():
client = socket.socket()
address = input("enter address : ")
port = int(input("Enter Port : "))
client.connect((address, port))
print("connected to server..")while True:
    recdata = client.recv(1024).decode()
    print('server : ', recdata)
    data = input("client: ")
    client.send(bytes(data, 'utf-8'))
Package: bizdatim
ABOUTbizdatim is a simple library for performing business day arithmetic.Source is hosted athttps://github.com/Polyconseil/bizdatim.KNOWN LIMITATIONSRotating weekends/holidays are not supported (e.g., two days working, third day
off).The business hour arithmetic is limited to additions.DEFINITIONSWeekendWeekly repeating non-business day. Weekend does not have to be at the end
(or beginning) or the week. Weekends do not have to be consecutive days.HolidayLike weekend, holiday is a non-business day. Unlike weekend, holiday does
not have weekly regularity. It is just a date. Holiday can coincide with
weekend.Working hoursThe starting and ending time of a business day.PolicyIs a (possibly empty) collection of weekends, holidays and working hours. All calculations
are performed within a policy.SAMPLE USAGEAll business day arithmetic is performed in the context of policy:>>> from bizdatim import Polycy, SAT, SUN
>>> from datetime import date
>>> policy = Policy(weekends=(SAT, SUN), holidays=(date(2011,7,1),))
>>> day = date(2011, 6, 29) # Wednesday
>>> print(policy.add(day, 2))  # add 2 business dates -> Monday after the long weekend
datetime.date(2011, 7, 4)
>>> print(policy.biz_day_delta(date(2011, 7, 4), date(2011, 6, 30)))  # one holiday, one weekend between
1There is also the possibility to do arithmetic on business hours:>>> policy = Policy(weekends=(SAT, SUN), holidays=(date(2011,7,1)), hours=(time(8), time(20)))
>>> day = datetime(2011, 6, 29, 14, 30)
>>> policy.add(day, timedelta(days=1, hours=5))  # The day after, in the afternoon
datetime.datetime(2011, 6, 29, 19, 30)
>>> policy.add(day, timedelta(days=1, hours=10))  # Too many hours, will finish the monday after the long weekend
datetime.datetime(2011, 7, 4, 12, 30)Policy method docstrings contain more examples.
Package: bizdays
python-bizdaysIn several countries and markets, the accountability of the price of a financial
instrument, mainly bonds and derivatives, involves the use of different rules to
compute the way the days go by.
In Brazil, several financial instruments pay interest according to the business
days along their life cycle.
So, having a way to compute the number of business days between 2 dates is
fairly useful to price financial instruments.bizdayswas created to make it easier.bizdayscomputes business days between two dates based on the definition of
nonworking days (usually holidays and weekends).
It also computes other collateral effects like adjust dates for the next or
previous business day, check whether a date is a business day, create sequences
of business days, and much more.Several financial libraries compute the holidays, giving no option to users set
it by their own.
Furtherly, the financial calendar is usually a small feature of a huge library,
as quantlib, for example, and some users, including myself, don't want to put a
hand in such a huge library only to use the financial calendar.bizdaysis a pure Python module without strong dependencies,
what makes it appropriated for small projects.
Package: bizerror
bizerrorCollections of common business errors.InstallpipinstallbizerrorInstalled command utilsbizerror-generatorShipped exception classesOKBizErrorSysErrorUndefinedErrorDatabaseErrorCacheErrorMessageQueueErrorAnotherServiceErrorHttpErrorRequestExpiredNotSupportedHttpMethodBadResponseContentNoMatchingRouteFoundReqeustForbiddenNoUpstreamServerAvailabeConfigErrorMissingConfigItemDataErrorTargetNotFoundAuthErrorAccountLockedErrorAccountTemporaryLockedErrorUserPasswordErrorAppAuthFailedTsExpiredErrorAccountDisabledErrorAccountStatusErrorAccountRemovedErrorLoginRequiredAccessDeniedUserDoesNotExistBadUserTokenReqidDuplicateErrorTypeErrorParseJsonErrorParamErrorMissingParameterBadParameterBadParameterTypeStringTooShortStringTooLongMissingFieldWrongFieldTypeWrongParameterTypeValueExceedsMaxLimitValueLessThanMinLimitFormErrorCaptchaOnlyAllowedOnceCaptchaValidateFailedRepeatedlySubmitFormCaptchaRequiredLogicErrorCastFailedErrorCastToIntegerFailedCastToFloatFailedCastToNumbericFailedCastToBooleanFailedCastToStringFailedNotSupportedTypeToCastPermissionErrorNoPermissionErrorNoReadPermissionErrorNoWritePermissionErrorNoDeletePermissionErrorNoAccessPermissionErrorNoPermissionToCleanCacheErrorRelease Notesv0.1.0Add BizError base class.Add some common errors.V0.2.0Add auto generate mechanism.Add language support.v0.2.1Fix get_error_message always use default language problem.Add BizError.MESSAGE classproperty.v0.2.3Add NotSupportedTypeToCast error.v0.3.0Add message parameters support.Add exception classes.Add class generator and tempalte maker.v0.3.1Fix xlsxhelper dependencies problem.v0.4.0Get error message by error class name, so that we can provide error message override function.v0.4.1Add UserDoesNotExist.Add BadUserToken.v0.4.2Fix unicode encode/decode problems.Support python3 only.v0.4.5Add StringTooShort and StringTooLong.Fix bizerror.BizError(another_bizerror) problem.v0.4.6Add BadResponseContent.v0.4.7Add BizError.update.Add CastFailedError.v0.4.9bizerror.BizError add init by a dict supporting.Add bizerror.PermissionError(s).v0.4.10Fix unicode problems for old python.Unittest all passed.v0.4.11Doc update.
Package: bizfly-two-fa
BizflyTwoFa:Info: A python sdk for BizflyTwoFa.:Repository:https://github.com/shinrel22/python_bizfly_two_fa:Author: Tri Nguyen (https://github.com/shinrel22):Maintainer: Tri Nguyen (https://github.com/shinrel22)Installationpip install bizfly_two_faExamples.. code :: pythonfrom bizfly_two_fa import BizflyTwoFa

>>> bizfly_2fa = BizflyTwoFa(
    secret_key='app_secret_key'
)

# generate 2fa session
>>> session_uid = bizfly_2fa.generate_session(
    email='user_email',
    phone='user_phone'
)

# send otp
>>> bizfly_2fa.send_otp(
    session_uid=session_uid,
    delivery_type='sms',
)

# verify otp
>>> result = bizfly_2fa.verify_otp(
    otp_value='user otp input',
    session_uid=session_uid
)
>>> result
Package: bizhook
Bizhawk HookInteract withBizhawkvia a socket server hosted in the Lua Console.How to useBizhawk LuaExportingExport all the necessary Lua components using the provided function.frombizhookimportexport_lua_componentsexport_lua_components('/home/williamson/.bizhook')You can either provide a path or leave it empty to have it open up a file dialogue asking for directory.The dialogue window may not work on all systems. If an error occurs, you'll simply have to provide the path as an argument.Opening socketIn Bizhawk, go toTools>Lua Console. SelectOpen scriptand openhook.luafrom the exported components.Is it working?If it starts successfully, you should see a text in the top-left of the emulator saying the socket is being opened. Should that not appear, try restarting the emulator until it does. This seems to be an issue with Bizhawk.Note: Do not try to communicate with the socketbeforethe text has disappeared, as it isn't actually opened yet. The message is there to make it clear that the script is running successfully.PythonYou can read from and write to memory by using aMemoryobject.frombizhookimportMemorycombined_wram=Memory('Combined WRAM')To see the available methods, dohelp(Memory).Memory domainYou can use the default memory domain by providing an empty string. However, I would advice against it and that you always do specify with which domain you want to interact. It may be that it works for you solely because, per chance, the default one happens to be the correct one.
Package: bizkit
bizkitbizkit is a Python package to help streamlining business analytics data mining tasks. This package provides methods for market basket analysis, anomaly detection, customer survival analysis, customer clustering, and uplifting analysis. Implemented algorithms include mlxtend.apriori, sklearn.IsolationForest, lifelines.KaplanMeierFitter, [], and []. bizkit focuses on ease of use by providing a well-documented and consistent interface. The results are visualized via bokeh library, d3fgraph library, and [].ReferenceMarket basket analysis:Introduction to Market Basket Analysis in Pythonhttps://pbpython.com/market-basket-analysis.htmlA Gentle Introduction on Market Basket Analysis — Association Ruleshttps://towardsdatascience.com/a-gentle-introduction-on-market-basket-analysis-association-rules-fa4b986a40ceAnomaly detection:Anomaly Detection Principles and Algorithms (2017) by Kishan G. Mehrotra, Chilukuri K. Mohan, HuaMing HuangSklearn IsolationForest:https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.IsolationForest.htmlTime-to-event analysis:Lifelineshttps://lifelines.readthedocs.io/en/latest/Customer clustering:Understanding K-means Clustering in Machine Learninghttps://towardsdatascience.com/understanding-k-means-clustering-in-machine-learning-6a6e67336aa1Uplift Modeling:Simple Machine Learning Techniques To Improve Your Marketing Strategy: Demystifying Uplift Modelshttps://medium.com/datadriveninvestor/simple-machine-learning-techniques-to-improve-your-marketing-strategy-demystifying-uplift-models-dc4fb3f927a2AuthorBassim Eledath, Lynn He, Christine Zhu, Amanda Ma
Package: bizlogic
BizLogicSome nanoswap business logicInstallationDocumentationBuild docs locallyTestsBefore running tests:Regenerate pb2.py filesIpfs setupRun the ipfs daemonIPFS troubleshootingInstallationpip install bizlogicDocumentationhttps://bizlogic.readthedocs.io/Build docs locallymkdocs serveTestsTo only run tests:pytest --cov=bizlogic --log-cli-level=debugTo only run lints:flake8 bizlogic --docstring-convention google --ignore=D100,D104 --exclude=loan_pb2.py,vouch_pb2.py,loan_application_pb2.pyTo run all checks:noxBefore running tests:Regenerate pb2.py filesprotoc --python_out=bizlogic/protoc --proto_path=protobuf protobuf/*.protoIpfs setuphttps://docs.ipfs.tech/install/Run the ipfs daemonipfs daemon --api /ip4/0.0.0.0/tcp/5001Check the status of your node at:http://localhost:5001/webuihttps://webui.ipfs.io/#/statusIPFS troubleshootingSet the log level, send the logs to a file, and search the file for relevant messagesexport IPFS_LOGGING=<debug|info|error>
ipfs daemon --debug 2>&1 | tee ipfs.log
cat ipfs.log | grep test_directoryIf you find something important, you can show the first few lines around that messagegrep -C 10 '2023-04-13T17:31:49.712-0400' ipfs.logHere is an example of an error message in these logs:2023-04-13T17:31:49.712-0400	DEBUG	cmds/http	http/handler.go:90	incoming API request: /files/mkdir?arg=test_directory
2023-04-13T17:31:49.712-0400	DEBUG	cmds	go-ipfs-cmds@v0.8.2/command.go:161	error occured in call, closing with error: paths must start with a leading slash