Name | sharpcosine JSON |
Version |
0.1.1
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-03-27 22:47:31 |
maintainer | None |
docs_url | None |
author | TAWSIF AHMED |
requires_python | None |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
### the original code belongs to Raphael Pisoni and Github repo: https://github.com/sleepingcat4/sharpened-cosine-similarity/blob/main/keras/README.md
## I wrapped the code around for this Python library
## send me an email if you require help
#### How to use
```Python
from sharpcosine import CosSim2D
from sharpcosine import MaxAbsPool2D
model = tf.keras.Sequential(
[
tf.keras.layers.InputLayer(input_shape=input_shape),
CosSim2D(3, 32),
MaxAbsPool2D(2, True),
CosSim2D(3, 64,),
MaxAbsPool2D(2, True),
CosSim2D(3, 128),
MaxAbsPool2D(2, True),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(num_classes)
]
)
Credit: https://www.rpisoni.dev/posts/cossim-convolution-part2/
```
Raw data
{
"_id": null,
"home_page": null,
"name": "sharpcosine",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "TAWSIF AHMED",
"author_email": "sleeping4cat@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/52/11/b266fa545145dc861bded17ddd50a9a6c578bd1593c62b381295ac2122dc/sharpcosine-0.1.1.tar.gz",
"platform": null,
"description": "### the original code belongs to Raphael Pisoni and Github repo: https://github.com/sleepingcat4/sharpened-cosine-similarity/blob/main/keras/README.md\r\n\r\n## I wrapped the code around for this Python library\r\n\r\n## send me an email if you require help\r\n\r\n#### How to use\r\n```Python\r\nfrom sharpcosine import CosSim2D\r\nfrom sharpcosine import MaxAbsPool2D\r\n\r\nmodel = tf.keras.Sequential(\r\n [\r\n tf.keras.layers.InputLayer(input_shape=input_shape),\r\n CosSim2D(3, 32),\r\n MaxAbsPool2D(2, True),\r\n CosSim2D(3, 64,),\r\n MaxAbsPool2D(2, True),\r\n CosSim2D(3, 128),\r\n MaxAbsPool2D(2, True),\r\n tf.keras.layers.Flatten(),\r\n tf.keras.layers.Dense(num_classes)\r\n ]\r\n)\r\n\r\nCredit: https://www.rpisoni.dev/posts/cossim-convolution-part2/\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": null,
"version": "0.1.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5e6cb874f7d2600b05effabb2197ab89c13299fbcfe394012ea1d459d37d3311",
"md5": "5a8857fdd6995e4f3aa95d04ea6a6e1f",
"sha256": "9926335084b93b8c4ae1e2c9159a4a3928bc969fceae3dbbd0f4385c3d0165c5"
},
"downloads": -1,
"filename": "sharpcosine-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5a8857fdd6995e4f3aa95d04ea6a6e1f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3410,
"upload_time": "2024-03-27T22:47:30",
"upload_time_iso_8601": "2024-03-27T22:47:30.590689Z",
"url": "https://files.pythonhosted.org/packages/5e/6c/b874f7d2600b05effabb2197ab89c13299fbcfe394012ea1d459d37d3311/sharpcosine-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5211b266fa545145dc861bded17ddd50a9a6c578bd1593c62b381295ac2122dc",
"md5": "1a88e6269a70fae70d9951856afd94e4",
"sha256": "4e76e51d721bc1043208f27335f7fd00c58d85317ed732fdacf58f3acac9a85d"
},
"downloads": -1,
"filename": "sharpcosine-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "1a88e6269a70fae70d9951856afd94e4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2732,
"upload_time": "2024-03-27T22:47:31",
"upload_time_iso_8601": "2024-03-27T22:47:31.723059Z",
"url": "https://files.pythonhosted.org/packages/52/11/b266fa545145dc861bded17ddd50a9a6c578bd1593c62b381295ac2122dc/sharpcosine-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-27 22:47:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sharpcosine"
}