semvec/pypi-packages huggingface dataset:
embassy 0.1
Python package for aligning embeddings and measuring alignment and stability errors.

# Alignment and Stability of Embeddings

 _**embas**sy_: **emb**edding **a**lignment and **s**tability

This Python package provides tools 
* to measure alignment and stability errors of given embeddings,
* to align given embeddings.

The package will soon be updated with new functionality for extracting rotation angles of a rotation matrix, creating rotation matrices with a desired magnitude, adding random walk-based noise with a desired magnitude, and other operations.

## Dependecies

1. [numpy](https://numpy.org/)
2. [scipy](https://www.scipy.org/)

Tested for numpy==1.20.1 and scipy==1.6.1 but should work with most versions.


## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install _embassy_.

```bash
pip install embassy
```

## Example Usage

```python
from embassy import align_and_measure
import numpy as np

X = np.array([[1.8, 2.0], [2.3,  2.5], [ 1.8, 4.2],  [4.1, 3.1]])
Y = np.array([[0.0, 1.2], [0.3,  1.6], [-0.4, 3.5 ], [1.6, 2.5]])

output = align_and_measure(X, Y)
             
print("\n Translation Error :", output['translation_error'], 
      "\n Rotation Error    :", output['rotation_error'],    
      "\n Scale Error       :", output['scale_error'],       
      "\n Stability Error   :", output['stability_error'],
      "\n",
      "\n X_aligned:\n",        output['emb1'],
      "\n",
      "\n Y_aligned:\n",        output['emb2'])
```

See _Examples/Demonstration.ipynb_ for visual and real-world examples.

## Citation

If you find this software useful in your work, please cite:

Furkan Gursoy, Mounir Haddad, and Cecile Bothorel. (2021). ["Alignment and stability of embeddings: measurement and inference improvement."](https://arxiv.org/abs/2101.07251) (2020).



## Contributing

Please feel free to open an issue for bug reports, change requests, or other contributions.


## License

[MIT](https://choosealicense.com/licenses/mit/)

Packaged with: [Flit](https://buildmedia.readthedocs.org/media/pdf/flit/latest/flit.pdf)
astrochart-svg 1.0.1
Chart SVG generator for astrology.
Requires Python: >=3.6

# Astro Charts SVG

astro_svg is a chart generator based on Kerykeion and Opeanstro.
Like the titles says it prints out SVG file of the chart,
it's very easy to use.

```python
# Install:
>>> pip3 install astro_svg

#Import:
>>> import astrochart_svg as as

# Make the instance:
>>> kanye = as.MakeInstance("Kanye", 1977, 6, 8, 8, 45, "Atlanta", type="Natal")

# Set the output directory for the SVG:
>>> kanye.output_directory = "/Users/{YourName}"

#Generate the SVG:
>>> kanye.makeSVG()


SVG generated successfully!
```

![alt text](https://raw.githubusercontent.com/g-battaglia/birthchartSVG/master/birthchartSVG/template/sample.svg)

```python

>>> first = kr.Calculator("Jack", 1990, 6, 15, 13, 00, "Montichiari")
>>> second = kr.Calculator("Jane", 1991, 6, 11, 21, 00, "Cremona")

 >>> name = MakeInstance(first, chart_type="Transit", second_obj=second)
 >>> name.makeSVG()

```
![alt text](https://raw.githubusercontent.com/g-battaglia/astrochart_SVG/master/sample.svg)


## Documentation

Just like in the exemple, first make an instance and then use the makeSVG() to generate the SVG chart.
The file generated has the name you inserted followed by Chart.svg

## Installation

BirtchartSVG is Python 3 package, make sure you have Python 3 installed on your system.

## Development

You can clone this repository or download a zip file using the right side buttons.