semvec/pypi-packages huggingface dataset:
fca-lazy-clf 0.3
Lazy binary classifier based on Formal Concept Analysis
License: MIT
Keywords: fca,formal-concept-analysis,lazy-learning,binary-classification

### Installation

  ```sh
  $ pip install fca_lazy_clf
  ```

  ###  Requirements

  The train and test datasets must be represented as ```pandas.DataFrame```. The classifier uses only attributes of types ```numpy.dtype('O')```, ```np.dtype('int64')``` and attributes with 2 any values. Other attributes will not be used. The target attribute must be binary.

  ### Example

  ```python
  >>> import fca_lazy_clf as fca
  >>> import pandas as pd
  >>> from sklearn import model_selection

  >>> data = pd.read_csv('https://datahub.io/machine-learning/tic-tac-toe-endgame/r/tic-tac-toe.csv')
  >>> data.head()

    TL TM TR ML MM MR BL BM BR  class
  0  x  x  x  x  o  o  x  o  o   True
  1  x  x  x  x  o  o  o  x  o   True
  2  x  x  x  x  o  o  o  o  x   True
  3  x  x  x  x  o  o  o  b  b   True
  4  x  x  x  x  o  o  b  o  b   True

  >>> X = data.iloc[:, :-1] # All attributes except the last one
  >>> y = data.iloc[:, -1] # Last attribute
  >>> X_train, X_test, y_train, y_test      = model_selection.train_test_split(X, y, test_size=0.33, random_state=0)

  >>> clf = fca.LazyClassifier(threshold=0.000001, bias='false')
  >>> clf.fit(X_train, y_train)
  >>> clf.score(X_test, y_test)

  0.9716088328075709
  ```
jinja2-error 0.1.0
Jinja2 Extension for Raise Error
License: MIT
Keywords: jinja2,extension,error

============
Jinja2 Error
============

|pypi| |pyversions| |license|

Jinja2 Extension for Raise Error

.. |pypi| image:: https://img.shields.io/pypi/v/jinja2-time.svg
   :target: https://pypi.python.org/pypi/jinja2-time
   :alt: PyPI Package

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/jinja2-time.svg
   :target: https://pypi.python.org/pypi/jinja2-time/
   :alt: PyPI Python Versions

.. |license| image:: https://img.shields.io/pypi/l/jinja2-time.svg
   :target: https://pypi.python.org/pypi/jinja2-time
   :alt: PyPI Package License


Installation
------------

**jinja2_error** is available for download from `PyPI`_ via `pip`_::

    $ pip install jinja2_error

It will automatically install `jinja2`_ along with `arrow`_.

.. _`jinja2`: https://github.com/mitsuhiko/jinja2
.. _`PyPI`: https://pypi.python.org/pypi
.. _`arrow`: https://github.com/crsmithdev/arrow
.. _`pip`: https://pypi.python.org/pypi/pip/

Usage
-----

Error Tag
~~~~~~~~~~~

The extension comes with a ``error`` tag that provides convenient to raise error`.

.. code-block:: python

    def test_raise_error(self):
        env = Environment(extensions=[ErrorExtension])
        render_text = """
        {% if 1==1 %}
          {% error "It's error" %}
        {% endif %}
        """
        template = env.from_string(render_text)
        self.assertRaises(TemplateRuntimeError, template.render, {"a": "b"})


Ansible Template Usage

.. code-block:: shell

    ANSIBLE_JINJA2_EXTENSIONS=jinja2_error.ErrorExtension ansible-playbook site.yml -vvv


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _`file an issue`: https://github.com/mumubin/jiaja2_error/issues


Code of Conduct
---------------

Everyone interacting in the jinja2_error project's codebases, issue trackers, chat
rooms, and mailing lists is expected to follow the `PyPA Code of Conduct`_.

.. _`PyPA Code of Conduct`: https://www.pypa.io/en/latest/code-of-conduct/

License
-------

Distributed under the terms of the `MIT`_ license, jinja2_error is free and open source software

.. image:: https://opensource.org/trademarks/osi-certified/web/osi-certified-120x100.png
   :align: left
   :alt: OSI certified
   :target: https://opensource.org/

.. _`MIT`: http://opensource.org/licenses/MIT