Saravanan666/pypi-org huggingface dataset:
Package: mixmil
MixMILCode for the paper:Attention-based Multi-instance Mixed ModelsPlease raise an issue for questions and bug-reports.InstallationInstall with:pip install mixmilalternatively, if you want to include the optional experiment and test dependencies use:pip install "mixmil[experiments,test]"or if you want to adapt the code:git clone https://github.com/AIH-SGML/mixmil.git
cd mixmil
pip install -e ".[experiments,test]"To enable computations on GPU please follow the installation instructions ofPyTorchandPyTorch Scatter.
MixMIL works e.g. with PyTorch 2.1.ExperimentsSee the notebooks in theexperimentsfolder for examples on how to run the simulation and histopathology experiments.HistopathologyInstallanndata(pip install anndata) to run the notebook.Download DataTo download the embeddings provided by the DSMIL authors, either:Full embeddings:python scripts/dsmil_data_download.pyPCA reduced embeddings:Google DriveCitation@misc{engelmann2023attentionbased,
      title={Attention-based Multi-instance Mixed Models}, 
      author={Jan P. Engelmann and Alessandro Palma and Jakub M. Tomczak and Fabian J Theis and Francesco Paolo Casale},
      year={2023},
      eprint={2311.02455},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}
Package: mixmod
MixModMixMod is package for fitting mixture models with an arbitrary number of components to data. While it can store parameters and calculate probabilities for mixture models containing components from arbitrary distributions, it can currently only fit model parameters for a relatively small subset of the named distributions defined in SciPy's stats module. The EM equations are explicitly solved for these distributions, which makes fitting the parameters fast and robust, however, at the cost of limiting the types of distributions which are supported as possible components.The MixtureModel class is fully documented. However, thetutorialis the recommended introduction to this package.DependenciesMixMod is designed to be lightweight and only requires NumPy for array calculations and SciPy for optimization and some special functions. The minimum versions were set to the most recent at the time of initial release (1.17 and 1.8, respectively), but no functionality specific to these releases is needed to my knowledge. There is also a "soft" dependency on the SciPy's implementation of the supported distributions since MixMod expects the random variables to implement pdf and cdf methods with the parametrizations used by SciPy.InstallationTo install MixMod, run the following command:pip install mixmod
Package: mixnode-py-sdk
OverviewThe MixnodePythonSDK allows you to
easily integrate the Mixnode REST APIs into your Python application.RequirementsPython2 and above.A Mixnode API key from a registered user on theMixnode
portal.Installationpipinstallmixnode-py-sdkTutorialFollow this tutorial to see a step-by-step guide and examples of how to
use the Mixnode Python SDK.Get the API key from Mixnode portalCreate an account onMixnode.If already registered, then login and navigate to api key page.Dashboard -> Choose API from left menu -> Note the API key.Or, directly navigate tohttps://www.mixnode.com/account/apito find
your API key.AuthenticationThis SDK comes with Basic Authentication over HTTPS which requires you
to pass your Mixnode API key using a config file or as a string during
client instantiation.Basic AuthenticationThis type of token is given directly to the application.frommixnodeimportMixnode# Create an instance of the Mixnode Clientclient=Mixnode("Your API Key")#add your API KEY here; available at https://www.mixnode.com/account/apiNote thatapi_keycan also be passed as a JSON object in a config
file to avoid specifying the key in the code. Please seeExamplesQuick StartfrommixnodeimportMixnode,MixnodeErrortry:query="SELECT url, title from homepages LIMIT 10"response=Mixnode("Your API Key").execute(query)print(response)exceptMixnodeErroraserror:print(error)Mixnode’s execute functionalityexecuteis a synchronous operation which builds response based on
paging Mixnode SQL API.execute can accept upto two parameters : query, inputLimit (optional).Please see variousExamplesfor usage details.frommixnodeimportMixnode,MixnodeErrortry:response=Mixnode("Your API Key").execute(query)# Do something with responseexceptMixnodeErroraserror:# Do something with errorfrommixnodeimportMixnode,MixnodeErrortry:# Fires a query and also sets the input limit on the data to be scannedresponse=Mixnode("Your API Key").execute(query,inputLimit)# Do something with responseexceptMixnodeErroraserror:# Do something with errorSDK debuggingTurning on the debug mode logs the HTTP requests being sent to the
Mixnode API. This is useful to verify if the queries being sent are
correct or to verify if query execution is in progress.# Setting debug to true logs the state of the application.# Do not use this in production.Mixnode("Your API Key").setDebug(True);Examples: Mixnode Python ClientExamplesSupporthi@mixnode.com
Package: mixon
mixonmixonis a variant of json which is convenient for long raw text fields.Example# Normal json part
{
    "id": "article1",
    "title": "Ipsum Lorem"
}
# Long Text Fields
#---------: contents :----------#
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.APIload()loads()dump()dumps()
Package: mixpanel
This is the official Mixpanel Python library. This library allows for
server-side integration of Mixpanel.To import, export, transform, or delete your Mixpanel data, please see ourmixpanel-utils package.InstallationThe library can be installed using pip:pip install mixpanelGetting StartedTypical usage usually looks like this:from mixpanel import Mixpanel

mp = Mixpanel(YOUR_TOKEN)

# tracks an event with certain properties
mp.track(DISTINCT_ID, 'button clicked', {'color' : 'blue', 'size': 'large'})

# sends an update to a user profile
mp.people_set(DISTINCT_ID, {'$first_name' : 'Ilya', 'favorite pizza': 'margherita'})You can use an instance of the Mixpanel class for sending all of your events
and people updates.Additional InformationHelp DocsFull Documentationmixpanel-python-async; a third party tool for sending data asynchronously
from the tracking python process.
Package: mixpanel-celery
mixpanel-celery helps you useCeleryto asynchronously track yourMixpanelevents. Waiting on HTTP requests to Mixpanel’s api to complete every time you
want to record something slows you down. Using mixpanel-celery gives you all of
the Mixpanel goodness without any of the potential performance impact.Visit themixpanel-celery websiteorread the docsfor more info.
Package: mixpanel_export
# mixpanel-export-streamA small Python library for exporting and reading raw event data from Mixpanel while taking advantage of the streamable JSONLine data format.This library is based on the Mixpanel's own data export library found [here](https://mixpanel.com/site_media/api/v2/mixpanel.py).## InstallationTo install the mixpanel export library, simply run the following:`pip install mixpanel_export`## What do you mean by a "stream"?Mixpanel's raw event data API returns data in JSONLine format, meaning each event is a JSON object on its own line.Mixpanel gives a warning to **not** attempt to read this data until it has downloaded in its entirety due to being zipped in `gzip` format, but this compression type is streamable, meaning it shouldn't matter.Streaming reduces the footprint in RAM significantly as compared to Mixpanel's own Python API implementation when you only care about doing reduces over events.## ExampleLet's assume we want to get all events 'A' with a property 'B' that is equal to "2". Events 'A' also have a property 'C', which is some random string value. We want the results grouped and tallied by 'C' to see how many property 'C' events occurred.This is simple and fast to do with this library.```pythonfrom collections import Counterfrom mixpanel_export import EventStreamapi_key = '...'api_secret = '...'es = EventStream(api_key, api_secret)params = {'event': ["A"],'from_date': '...','to_date': '...','where': 'property["B"] == "2"'}count = Counter()def do_count(e):count[e['properties']['C']] += 1# allow the request a maximum of 5 minutes (300 seconds) before expiringtotal = es.request(params, do_count, expire=300)print("Total events processed %s, tally: %s" % (total, count))```For more details on what you can use for the `params` argument, refer to Mixpanel's documentation [here](https://mixpanel.com/docs/api-documentation/data-export-api).
Package: mixpanel_extract
Extract Mixpanel raw events and store on S3FeaturesDownload raw events from the Mixpanel data apiUpload on S3Store locallyGzip compressionRetry download (5 times, wait 60s before retrying)Notes:Parameters can be set by environment variables (like MIXPANEL_KEY)Download events of yesterday by defaultInstallpip install mixpanel-extractUsageusage: mixpanel-extract [-h] [--mixpanel-key MIXPANEL_KEY]
                        [--mixpanel-secret MIXPANEL_SECRET]
                        [--s3-bucket S3_BUCKET] [--s3-prefix S3_PREFIX]
                        [--s3-key S3_KEY] [-o OUTPUT] [-z]
                        [--from-date YYYY-MM-DD] [--to-date YYYY-MM-DD]

optional arguments:
  -h, --help            show this help message and exit
  --mixpanel-key MIXPANEL_KEY
                        Mixpanel API key
                        [default=e43729b115512e367e71c86894244d5b]
  --mixpanel-secret MIXPANEL_SECRET
                        Mixpanel API secret
                        [default=2a188b9d1b41b0ce35e14703e65d7104]
  --s3-bucket S3_BUCKET
                        Store on S3 [default=None]
  --s3-prefix S3_PREFIX
                        Prefix for the S3 key
                        [default=e43729b115512e367e71c86894244d5b]
  --s3-key S3_KEY       Prefix for the S3 key [default=2015-03-08]
  -o OUTPUT, --output OUTPUT
                        Store in local filesystem [default=None]
  -z, --gzip            Store as GZIP file
  --from-date YYYY-MM-DD
                        Extract events from this date [default=2015-03-08]
  --to-date YYYY-MM-DD  Extract events up to this date [default=2015-03-08]Exampleexport MIXPANEL_KEY=XXXXXXXXXXXXXXXXX
export MIXPANEL_SECRET=ZZZZZZZZZZZZZZZZZZZZ
mixpanel-extract --gzip --s3-bucket jean-mixpanel -o /jean.gz
Package: mixpanel-python
A very minimal Mixpanel API client for python, based on mixpanel example code from:https://mixpanel.com/docs/integration-libraries/pythonRequirescurl,simplejson, and Python version 2.4 or higher.mixpanel-pythonis intended to be simpler thanhttps://pypi.python.org/pypi/mixpanelwhich has more dependencies, likebeanstalkdBasic Usage:mp = Mixpanel(“your_api_key”, “your_api_token”)
# track an event
mp.track_event(“some_event”, {“property”: “val”})# import an event older than 5 days old
mp.import_event(“some_event”, {“property”: “val”, “time”: 1370740703})# convenience method to track or import event based on its ‘time’ property
mp.track_or_import_event(“some_event”, {“time”: 1371345364})# set property on a person in Mixpanel
mp.engage_user_set(“some_user_id”, {“$first_name”: “Pam”})# block until subprocess sending event to mixpanel has completed
sp = mp.track_event(“some_event”, {“property”: “val”})
sp.communicate()
Package: mixpanel-query-py
# mixpanel-query-pyThe Python interface to fetch data from Mixpanel via [Mixpanel's Data Query API](https://mixpanel.com/docs/api-documentation/data-export-api). Note, this differs from the official [Python binding](https://github.com/mixpanel/mixpanel-python) which only provides an interface to send data to Mixpanel.# InstallationTo install mixpanel-query-py, simply:```$ pip install mixpanel-query-py```or alternatively (you really should be using pip though):```$ easy_install mixpanel-query-py```or from source:```$ git clone git@github.com:cooncesean/mixpanel-query-py.git$ cd mixpanel-query-py$ python setup.py install```# UsageYou will need a [Mixpanel account](https://mixpanel.com/register/) and your `API_KEY` + `API_SECRET` to access your project's data via their API; which can be found in "Account" > "Projects".```pythonfrom mixpanel_query.client import MixpanelQueryClientfrom your_project.conf import MIXPANEL_API_KEY, MIXPANEL_API_SECRET# Instantiate the clientquery_client = MixpanelQueryClient(MIXPANEL_API_KEY, MIXPANEL_API_SECRET)# Query your project's datadata = query_client.get_events_unique(['Some Event Name'], 'hour', 24)print data{'data': {'series': ['2010-05-29', '2010-05-30', '2010-05-31'],'values': {'account-page': {'2010-05-30': 1},'splash features': {'2010-05-29': 6,'2010-05-30': 4,'2010-05-31': 5,  # Date + unique event counts}}},'legend_size': 2}```### AuthenticationBy default the `MixpanelQueryClient` will use signature-based authentication when issuing requests to Mixpanel. If you would like to use the secret-based authentication method, you can do so like this:```pythonfrom mixpanel_query.client import MixpanelQueryClientfrom mixpanel_query.auth import SecretAuth, SignatureAuthfrom your_project.conf import MIXPANEL_API_KEY, MIXPANEL_API_SECRET# Instantiate a secret-based auth clientsecret_auth_client = MixpanelQueryClient(MIXPANEL_API_KEY, MIXPANEL_API_SECRET, auth_class=SecretAuth)# Instantiate a signature-based auth client explicitlysig_auth_client = MixpanelQueryClient(MIXPANEL_API_KEY, MIXPANEL_API_SECRET, auth_class=SignatureAuth)```View the [api reference](#api-reference) for details on accessing different endpoints.# API ReferenceMixpanels' full [API reference is documented here](https://mixpanel.com/docs/api-documentation/data-export-api).# Python SupportThis library now supports both by Python >2.7.6 as well as <Python 3.4.3 with [recent additions](https://github.com/cooncesean/mixpanel-query-py/pull/15) added by @robin900.
Package: mix-pid
PID锅炉燃烧器控制算法例子frompidimportPIDpid=PID(kp=1.0,ki=0.0,kd=0.0,set_pressure=0.5,thresholds=(-10,10),throttle_limits=((30,60),(40,65),(50,70)),output_limits=(None,None),auto_mode=True)pid(input_gear=1,input_pressure=0.4,input_angle=59)完整的API文档在这里.安装pip install mix-pid使用每次的调用反馈返回此次推荐的油嘴档位和风门角度值output_gear,output_angle=pid(input_pressure,input_angle)参数说明设置目标压力pid.set_pressure=0.5设置Kp, Ki, Kd系数pid.Ki=1.0pid.tunings=(1.0,0.2,0.4)设置判断决策的阈值pid.thresholds=(-10,10)设置燃烧器不同档位的风门角度限制pid.throttle_limits=((30,60),(40,65),(50,70))设置PID输出限制避免出现integral winduppid.output_limits=(0,10)# output value will be between 0 and 10pid.output_limits=(0,None)# output will always be above 0, but with no upper bound设置手动/自动模式pid.auto_mode=Truepid.auto_mode=False许可证Licensed under theMIT License.
Package: mixpopid
Mixed Cell Population Identification PackageThis package contains methods designed to determine the existance of
subpopulations with different responses to a given drug from a dataset of
screenings with that drug on the total cell population. The dataset should
contatin cell viability data tested on C different drug concentrations over
N time points and containing R replicates. The package can then estimate the
number of subpopulations, their mixture proportions and a dose-reponse curve
for each of the subpopulations.This version of the package contains a single module with following functions:rateexpopopexpoobjectivemixtureIDIt also contains a dictionary 'bounds_expo', which is used by mixtureID by
default. You can find a detailed discription in function documentation.Some of the functions are model specific. This version only has an exponential
model option, more are going to be added in the future. You can contribute to
the project by adding other models and bounds options.Find all package files on:https://github.com/Apollinaria45/mixpopid
Package: mixprops
mixpropsMixture properties calculator.InstallationPythonpipinstallmixprops--upgradeConfigurationUsing asettings.yamlconfiguration file, you can specify the units system used for computation.Available units systems:SI- International System of UnitsSIC- International System of Units with temperature in degrees Celsius (DEFAULT)IS- Imperial Unit System (currently this only assumes a temperature in degrees Fahrenheit)You may also overwrite the default Pressure unit of Pascal:Pa- PascalkPa- KilopascalMpa- Megapascalbar- barExampleunits:"SI"# International System of Unitspressure_unit:"kPa"# KilopascalPropertiesmolecular_weight- Molecular weight (g/mol)density- Density (kg/m3)specific_heat_capacity- Specific heat capacity (J/kg-K)viscosity- Viscosity (kg/m-s)conductivity- Thermal conductivity (W/m-K)speed_of_sound- Speed of sound (m/s)adiabatic_index- Adiabatic indexSupported speciesFor the supported species, see the.csvfiles in themixprops/datadirectory.Examplesfrommixprops.mixtureimportMixturefrommixprops.stateimportStatemixture=Mixture(species=[("O2",0.21),("N2",0.79)],state=State(pressure=101325,temperature=25))print(mixture.specific_heat_capacity)# 1011.3387518918726CLIFollow instructions frompipxto installpipx.pipxinstallgit+https://github.com/oaarnikoivu/mixprops.gitmixprops\--unitsSIC\--pressure-unitPa\--state101325,25\--speciesO2,N2\--composition0.21,0.79--units= Units system -> Optional, defaults toSIC--pressure-unit= Pressure unit -> Optional, defaults toPa--state= Mixture state -> Absolute pressure,temperature--species= Comma separated list of species by name or species -> O2,N2 or Oxygen,Nitrogen--composition= Species molar composition as comma separated mole fractions -> 0.21,0.79
Package: mixpython
MIX pythonThis package is both a tutorial paper and a library of classic TAOCP algorithms in the Python languageThe Art of Computer Programming (TAOCP)is a comprehensive monograph written by computer scientist Donald Knuth that covers many kinds of programming algorithms and their analysis.Install:pip install mixpythonSimple usage:import mixpython.algorithms as mix

alg = mix.Algorithms(logger=True) # mix.Algorithms - A base class that implements the algorithms and minimum settings

alg.euclid_e(45678, 86)
Package: mixsim
MixSimA Realistic Speech Mixture SimulatorMixSim is an open-source multipurpose speech mixture simulator that covers speaker localization/tracking,
dereverberation, enhancement, separation, and recognition tasks.DocumentationSeedocumentationfor more
details.A Simple ExampleFirst, install MixSim using:pipinstall-Umixsim

mixsim--helpYou can use themixsimcommand to run the simulator:mixsim\--seed1\--sample_rate16000\--clean.fpath_file/path/to/clean.txt\--noisy.fpath_file/path/to/noisy.txt
...Use an additional configuration file to specify the parameters:mixsim--config_file/path/to/config.tomlUse package reference to access the simulator:frommixsimimportMixer,Writermixture_list=Mixer(clean_file_list,noise_file_list,snr_list,output_members=["n_mix_y_rvb","s_y","s_transcript"])file_writer=Writer(output_list=mixture_list)file_writer.write()ContributingFor guidance on setting up a development environment and how to
contribute to MixSim, seeContributing to
MixSim.LicenseMixSim is released under theMIT license.
Package: mix-splitter
MIX SPLITTERDownload all the songs in a youtube mix using
a console script.This script reads the songs in the description or a source and downloads them separetely using youtube-dl.PrerequisitesSince this script uses youtube-dl we need to install some of its dependencies.sudo apt-get install ffmpegsudo apt-get install atomicparsleyThis script also requires:Python >=3.6Pip 3InstallationIf you want to use the script globally, make sure
you're not inside a virtual environmentpython3.6 -m pip install mix-splitter --upgradeTypemix-splitterin the consoleIf that worked you should see this:*** You must provide one source to download the songs ***If you don't see that, you need to do the following step:Add ~/.local/bin to $PATHOpen bash_profilesudo nano ~/.bash_profilePaste this at the end of the fileexport PATH=$PATH:~/.local/binRestart the terminalUsageBasicmix-splitter -u '<YOUTUBE_MIX_URL>'Note 1:Make sure to enclose the URL with quotesNote 2:That will dowload the songs in the current directoryIf you want specify the directory where the songs are downloadedwith-lmix-splitter -u '<YOUTUBE_MIX_URL>' -l /directory/to/download/the_songsSpecify album artistSometimes the mixes' description just contain the title of the songs (with no artist). This is usually an artist's album. To download these kind of mixes, you can specify the name of the artist with-a.mix-splitter -u '<YOUTUBE_MIX_URL>' -a <ARTIST>What mixes are compatible?Those that have the songs in the description.Sometimes the mixes don't contain the song titles in the description, but they're provided in the comments.In a case like that, copy the the part of the comment that contains the songs and paste that in a new .txt file.Separate each song with a new line (if it isn't already like that).Then execute the script with the command-sand append the path of that .txt file.mix-splitter -s /file/that/contains/the_songs.txtNote 3:Since that file already contains the songs to download, the youtube mix url is no longer necessary. So just providing the path is enough.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: mixstream
MixStreamMixStream is a C-extension in Python to combineSoundTouchandSDL_mixer.History2019/07/25: Replace the Python StreamingOggSound class with the OggStreamer module
(See:https://github.com/fofix/fofix/commit/e4d9f3209af1d350237c4baddba3cfbd5e576d8f).SetupDependenciesYou'll need those packages:glib(> 2.34)libogglibtheoralibvorbisfilesdl 1.2sdl_mixer 1.2soundtouch.Native modulesBuild the extension:python setup.py build_ext --inplace --force
Package: mixto-py
mixto-pyThe python library for Mixto.Installpip install mixto-pyFor dev instances, clone this repo and run from inside of the directory:pip install -e .UsagefrommixtoimportMixtoThe main class can be instantiated in two ways:m=Mixto()# orm=Mixto(host="https://mixto_host",api_key="youapikey")ExamplefrommixtoimportMixtom=Mixto()forworkspaceinm.miscGetWorkspaces():print(workspace.commit_count)forcommitinworkspace.commits:print(commit.commit_id,commit.title)
Package: mixture-experimentalist
AutoRA Mixture ExperimentalistThe Mixture Experimentalist identifies novel experimental conditions under which a hybrid of different experimental sampling strategies is used.
This mixture can include any custom strategies such as falsification, novelty, crucial experimentation, uncertainty, elimination, aesthetic preferences, and arbitrary preferred/dispreferred regions of the space. The selection of conditions is based on a weighted sum of the scores obtained from these strategies.Quickstart GuideYou will need:Python 3.8 or greater:https://www.python.org/downloads/Mixture Experimentalist is a part of the AutoRA package:pipinstall-Uautora["experimentalist-mixture"]Check your installation by running:python-c"from autora.experimentalist.mixture import mixture_sample"UsageThe Mixture Experimentalist can be used to select experimental conditions based on a mixture of different strategies. Here's a basic example:fromautora.experimentalist.mixtureimportmixture_sample# Define your condition pool, temperature, samplers, and parameterscondition_pool=...temperature=...samplers=...params=...# Use the mixture_sampler to select conditionsselected_conditions=mixture_sample(condition_pool=condition_pool,temperature=temperature,samplers=samplers,params=params,num_samples=10)In this example, condition_pool is the pool of experimental conditions to evaluate, temperature controls the randomness of the selection (close to 0 for deterministic, higher for more random), samplers is a list of sampler functions with their weights in the mixture, and params is a dictionary of parameters for the sampler functions.For more detailed usage instructions and examples, please refer to the documentation:https://github.com/blinodelka/mixture_experimental_strategies/blob/main/docs/basic-usage.ipynb.