semvec/pypi-packages huggingface dataset:
om-simple 0.1.6
OM Simple

# Image Classification
```
pip install om-simple
```

## Data Preparation

```
{dataset name}/
├── train/
│   ├── {class1}/
│   ├── {class2}/
│   ├── ...
└── val/
    ├── {class1}/
    ├── {class2}/
    ├── ...
```

## Example Code
```python
from om_simple.img_class_head import ImageClassification
from om_simple.img_class_model import run_train
from om_simple.tools.utils import is_blur

# Train
run_train("{dataset name}",
    model_name="{model_name}", # e.g., resnet18, resnet50, vit_base_patch16_224, etc....
    outdir="{output_dir}")

# Simple Classification
X = ImageClassification("epoch099.ckpt")
z = X.predict(images=["sample.jpg"])


# Blur detection
print (is_blur("sample.jpg"))

# Multi label classification

from om_simple.multi_class_model import MultiClass
X = MultiClass("model.ckpt","label.json")
z = X.predict(images=["sample.jpg"])




```


# How to get available model_name
```
import timm
avail_pretrained_models = timm.list_models(pretrained=True)
print (avail_pretrained_models)

all_vit_models = timm.list_models('vit*')
print (all_vit_models)

```

# Tensorboard
```
tensorboard --logdir {output_dir} --bind_all
```
contained 0.0.2
Enable function chaining for any object
Requires Python: >=3.8
Keywords: functional,composition,pipline,chaining

Enable function chaining for any object.

Contained is a class that can wrap any type and make it possible to do function
chaining on that object, much like functional piping.

Any method that is defined on the contained type is possible to call, whether it
returns a copy or mutates in place. It is also possible to call operators and
any builtin function, without breaking the chain. To get the original variable
back out of the Contained, just call it with no args.

```python
from contained import Contained
ex = ['hello', 'world']
Contained(ex)() == ex  # True

# methods
Contained(['hello']).extend(['world'])() == ex  # True

# operators
Contained(['hello']).add(['world']).contains('hello')()  # True

# builtins
Contained(ex).len().type()()  # <class 'int'>
```

Contained can also be given an additional namespace to allow for custom
chained methods. This can be a module dict, class dict, globals, locals, or
any other dict mapping names to objects.

```python
def stringify_number_colleciton(c):
    return (s if not str(s).isdigit() else int(s) for s in c)

(Contained({1, "A", 3.02, ()}, additional_methods=locals())
    .stringify_number_colleciton()
    .sorted(key=lambda s: str(s))
    () == 
[(), 1, 3.02, 'A'])
```

```python
import functools, itertools

# if you are on Python >= 3.9 use `additional_methods=(vars(functools) | vars(itertools))`
(Contained(42, reversed=True, additional_methods=Contained(vars(functools)).update(vars(itertools))())
    .range()
    .list()
    .takewhile(lambda x: x < 18)
    .dropwhile(lambda x: x <= 5)
    .map(hex)
    .reduce(lambda y, x: f"{y} {x}")
    () ==
"0x6 0x7 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf 0x10 0x11")
```
auto34diff 0.1.0
CS107 project from team 34
Requires Python: >=3.7

# team34's Repo

<br>

[![coverage.yml](https://code.harvard.edu/CS107/team34/actions/workflows/coverage.yml/badge.svg)](https://code.harvard.edu/CS107/team34/actions/workflows/coverage.yml)
[![test.yml](https://code.harvard.edu/CS107/team34/actions/workflows/test.yml/badge.svg)](https://code.harvard.edu/CS107/team34/actions/workflows/test.yml)

Team Members: [Yuqin Bai](mailto:yuqinbai@g.harvard.edu), [Danning Lai](mailto:danninglai@g.harvard.edu), [Gekai Liao](mailto:gekailiao@g.harvard.edu), [Boxiang Wang](mailto:bwang@g.harvard.edu), [Dunmin Zhu](mailto:vzhu@fas.harvard.edu)

* [`docs`](docs)

  * [`milestone1.md`](docs/milestone1.md)

        Design document for CS107 final project.

  * [`milestone1.pdf`](docs/milestone1.pdf)

        Rendering of the design doc.

  * [`milestone2_progress.pdf`](docs/milestone2_progress.pdf)

        Plans for structuring project work and delegating tasks.
  * [`milestone2.ipynb`](docs/milestone2.ipynb)

        Design document and forward mode implementation doc for Milestone 2.

* [`auto34diff`](auto34diff)
  
  * [`__init__.py`](auto34diff/__init__.py)

  * [`autodiff.py`](auto34diff/autodiff.py)
  
  * [`forward.py`](auto34diff/forward.py)

  * [`reverse.py`](auto34diff/reverse.py)

* [`tests`](tests)

    Test suite.

* [`LICENSE`](LICENSE)

    This project is available for use under the MIT License.

* [`requirements.txt`](requirements.txt)

    Minimum package requirements.

* [`.gitignore`](.gitignore)

    Specifies intentionally untracked files to ignore for our project.