semvec/pypi-packages huggingface dataset:
mllb 0.0.3
Machine Learning package
Requires Python: >=3.6

# mllb
Machine Learning algorithms.


```
pip install mllb
```

<h1>Overview</h1>

This repository contains Machine Learning algorithms for Linear Regression, Logistic Regression, and Convolutional Neural Networks.
It also helps to easily and efficiently port, edit and select rows in csv files directly for training.

This project was inpired by the author's quest to understand the basic concepts and mathematics of Machine Learning.

It uses NumPy **heavily** for its computations.

<h1>Basics</h1>

Here, the basic a few basic things that can be done with the package are discussed. A more detailed documentation can be found in the **docs** directory.

<h2>Linear Regression</h2>

To train a simple Linear Regression algorithm from x, and y.


```

import mllb as ml

x = [1, 2, 3, 4, 5, 6]
y = [3, 5, 7, 9, 11, 13]

# Create a linear regression model
model = ml.linear_regression(x, y)

# Choose a learning rate
model.learning_rate.initial(0.1)

# Choose the number of epochs and train, the default optimizer is Stochastic Gradient Descent
model.train(10)

# Test the model by predicting a value
pr = model.predict([10])

# Print the prediction
print(pr)

```


<h2>Convolutional Neural Network</h2>

To train a simple Convolutional Neural Neural network, four simple 'pictures' whose resolutions are 4 x 4 pixel pictures will be used as an example here.

<pre>
image 1 = [white, white]
          [black, black]

image 2 = [black, white]
          [white, black]

image 3 = [black, black]
          [white, white]

image 4 = [white, black]
          [black, white]
</pre>

```

import mllb as ml

# Using white = 1 and black = 0, the four images can be represented as x
x = [[1, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 1], [1, 0, 0, 1]]

# Choose a corresponding value y that represents the classifier. Here, we choose:
# image 1 as [0, 0]; image 2 as [0, 1]; image 3 as [1, 0] and image 4 as [1, 1]
y = [[0, 0], [0, 1], [1, 0], [1, 1]]

# Create a cnn (Convolutional Neural Network model)
model = ml.cnn(x, y)

# Create the layers for the network using the activation function names
# Here two layers will be created; a ReLU layer with 5 nodes, and a sigmoid layer with 2 nodes
model.layers.create(ml.relu(5), ml.sigmoid(2))

# Intialize the layer weights with xavier method for faster convergence
model.layers.xavier_initialization()

# Set an intial learning rate
model.learning_rate.initial(0.01)

# If you wish, the learning rate can be multiplied by a value after every epoch for faster convergence.
# This part optional. Here we use 1.01 (increase learning rate by 1% after every epoch)
model.learning_rate.multiply_after_epoch(1.01)

# Train the model and choose the number of epochs, an epoch of 800 is chosen here. It defaults to Stochastic Gradient Descent.
model.train(800)

# Test your model by predicting an image
img1 = model.predict([1, 1, 0, 0])
img2 = model.predict([0, 1, 1, 0])
img3 = model.predict([0, 0, 1, 1])
img4 = model.predict([1, 0, 0, 1])

# Print the predictions
print(img1)
print(img2)
print(img3)
print(img4)

```

```
# Print the predictions
print(img1)
print(img2)
print(img3)
print(img4)

```
libkosciuszko 0.1.3
Library for managing kosciuszko vaults
Requires Python: >=3.7

# libkosciuszko

kosciuszko is a simple vault for storing secrets on GNU/Linux. It is heavily inspired by [encnote](https://git.sr.ht/~shakna/encnote).

This lib implements all basic features. See also [kosciuszko-utils](https://git.sr.ht/~happy_shredder/kosciuszko-utils) for CLI interfaces.

# Rationale

All existing approaches to storing arbitrary secrets on Linux are shit. kosciuszko is a general purpose vault which supercedes all existing approaches. It uses standard technologies and so can easily be implemented in e.g. shell or any arbitrary language.

## Method
Unsecured secrets are stored in a directory. This directory is then folded into a squashfs, and then encrypted with a GPG key.
To access secrets, the process is simply reversed.

# Usage

Import with `python3 -m pip install --user libkosciuszko`. Create a kosciuszko object with

```{.python}
gpg_id = "example@example.com"	# Email, key name, key ID etc
store = "example.kos"			# Filename
kosciuszko = Kosciuszko(gpg_id, store)
```

There are several core methods.

```{.python}
kosciuszko.new() 					# Initialise a new store
ls = kosciuszko.list() 				# List contents of a store, either in machine friendly or user-friendly formats (detailed=True flag)
kosciuszko.addfile(filename, data) 	# Add a file called filename, containing data `data` (bytes)
kosciuszko.getfile(filename) 		# Retrieve file called filename
```

# Homepage

<https://git.sr.ht/~happy_shredder/libkosciuszko>

# License

GPLv3+
pycolour 1.0.3
A simple command line colour tool for python
Requires Python: >=3.6

# pycolour

Easily colour your text in the command line

- Black
- Red
- Green
- Yellow
- Blue
- Purple
- Cyan
- White
- Bold
- Normal
- end

Usage:
```print(pycolour.red + "Red Text" + pycolour.end)```

Use: ```import pycolour as p``` instead of: ```import pycolour``` to make referencing easier