semvec/pypi-packages huggingface dataset:
MihkelMagicElectrical 0.8.0
Automated analysis of superconductor electrical data.
License: MIT
Requires Python: >=3.9

# MihkelMagic_Electrical

This is script to automate the analysis of electrical cell data. 

#  Installation

Run the following command:
pip install MihkelMagic_Electrical

# How to mihkelBayesian

## Optimizing hyperparameters

In order to optimize 2 hyperparameters you need to: 

>from mihkelBayesian import optimize

>min_val, min_hyperparameters = optimize.run(evaluateFunction, functionConstants, n_iterations,bounds) 

evaluateFunction - a string of the same name as the function you wish to evaluate in functions.py. 
functionConstans - a list of constants you wish to apply to the evaluateFunction
n_iterations - how many measurements of the function the optimizer is allower to make
bounds - (1 x 2) shape numpy array that limits the searchspace in the form of [[x1min,x1max],[x2min,x2max]]
min_val - the smallest function value 
min_hyperparameters - hyperparameter pair corresponding to that value. 

(Eg. run("rosenbrock",[1,10],300,np.array([[0,10],[-20,40]])))

## Choosing the function to evaluate

Open functions.py to see all currently available functions. Each function takes an array XY that is automatically generated by the optimizer and a list of function constants that the function uses. Use one of the pre-existing functions or write your own function that the optimizer will call upon. Custom function can be analytical, machine learning etc. 


## Testing

Pytest is used to test the code. All tests are located in the 'tests' folder.To run the tests, execute:

> pytest

# Notes

You can vary the hyperparameters of the optimizer in order to get better results.

More than 500 no_iterations takes long time to compute. Often no more than 300 iterations are needed. 

One run with 500 iterations takes about 4 minutes if the function evaluation is instantaneous.
drf-errors-formatter 1.0.1
Format errors in Django Rest Framework
License: MIT
Requires Python: >=3.6
Keywords: django rest errors format-errors api

DRF Errors formatter
====================

This is a exception handlers error formating for Django REST Framework 
which allows you to format errors in all project.


Requirements
============

- Python (3.6+)
- Django (2.0+)
- djangorestframework (3.8+)

Installation
============

```
pip install drf-errors-formatter
```

Usage
=====
/home/thomas/Desktop/drf-errors-formatter/drf_handlers/formatter.py
Add formatter to DRF settings

```
REST_FRAMEWORK = {
    'EXCEPTION_HANDLER': 'drf_handlers.formatter.errors_exception_handler'
}

```


Authors
=======
2021, Thomas
pickl 0.3.0
Live calculations of Pi
License: MIT
Keywords: pi,math,calculator,constants

======
Pickle
======

Pickle is a simple live Pi calculator that can run on Casio fx-CG50
calculators or any Casio calculator that has MicroPython.

Documentation
-------------

int ``grlpi(int amount, int precision,o=False)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Calculates pi using the Gregory-Leibniz algorithm.
        

int ``nkpi(int amount, int precision,o=False)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Calculates pi using the Nilakantha algorithm.
        

int ``grlpi(int amount, int precision,o=False)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Calculates pi using the Archimedes algorithm. Cannot go higher than 511 iterations.
        

int ``galpi(int amount, int precision,o=False)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Calculates pi using the Gauss-Legendre algorithm.

int ``cpi(int amount, int precision,o=False)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Calculates pi using my algorithm, the Chris' algorithm.