semvec/pypi-packages huggingface dataset:
csmmix 1.0.1
A plug-and-play label-invariant mixup method  that  achieves  data  augmentation  by  mixing  class-specific  magnitude

CSMMix

A Python package for mixing image magnitude.

## Install

You can install the `csmmix` package via pip:
pip install csmmix



## Instructions

```python
from csmmix.mix import csmmix

## Using functions from csmmix
mixed_image = csmmix(x, y, num_class, lamb)
dict-path-finder 0.0.3
Find dictionary path by key and value

# dict-path-finder

`dict-path-finder` is a Python library designed to find the paths to specific keys or values within nested dictionaries and lists. This can be particularly useful for working with complex JSON data structures.

## Features

- Find all paths to a specified key in dictionaries and lists.
- Find all paths to a specified value in dictionaries and lists.
- Outputs all paths to the key and value you are looking for as a list.

## Installation

You can install `dict-path-finder` using pip:

```sh
pip install dict-path-finder
```

## Usage

### Finding Paths by Key

```python
from dict_path_finder import find_paths_by_key

data = {
    "items": [
        {
            "type": "book",
            "title": "Inception",
            "authors": [
                {
                    "name": "F. Scott Fitzgerald"
                }
            ]
        },
        {
            "type": "movie",
            "title": "Inception",
            "directors": [
                {
                    "name": ["Christopher Nolan", "heaven"]
                }
            ]
        }
    ]
}

input_key = "title"
results = find_paths_by_key(data, input_key)

for result in results:
    print("Output:", result)

# result
# Output: data["items"][0]["title"]
# Output: data["items"][1]["title"]

```



### Finding Paths by Value
```python
from dict_path_finder import find_paths_by_value

data = {
    "items": [
        {
            "type": "book",
            "title": "Inception",
            "authors": [
                {
                    "name": "F. Scott Fitzgerald"
                }
            ]
        },
        {
            "type": "movie",
            "title": "Inception",
            "directors": [
                {
                    "name": ["Christopher Nolan", "heaven", "Inception"]
                }
            ]
        }
    ]
}

input_value = "Inception"
results = find_paths_by_value(data, input_value)

for result in results:
    print("Output:", result)

# result
# Output: data["items"][0]["title"]
# Output: data["items"][1]["title"]
# Output: data["items"][1]["directors"][0]["name"][2]

```