mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
Merge branch 'master' into enable-ruff-RUF007-rule
This commit is contained in:
commit
487fa33f32
0
data_structures/arrays/__init__.py
Normal file
0
data_structures/arrays/__init__.py
Normal file
0
data_structures/hashing/tests/__init__.py
Normal file
0
data_structures/hashing/tests/__init__.py
Normal file
0
electronics/__init__.py
Normal file
0
electronics/__init__.py
Normal file
|
@ -37,8 +37,7 @@ class CircularConvolution:
|
||||||
using matrix method
|
using matrix method
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
>>> import circular_convolution as cc
|
>>> convolution = CircularConvolution()
|
||||||
>>> convolution = cc.CircularConvolution()
|
|
||||||
>>> convolution.circular_convolution()
|
>>> convolution.circular_convolution()
|
||||||
[10, 10, 6, 14]
|
[10, 10, 6, 14]
|
||||||
|
|
||||||
|
|
0
fractals/__init__.py
Normal file
0
fractals/__init__.py
Normal file
0
geometry/__init__.py
Normal file
0
geometry/__init__.py
Normal file
0
greedy_methods/__init__.py
Normal file
0
greedy_methods/__init__.py
Normal file
0
linear_programming/__init__.py
Normal file
0
linear_programming/__init__.py
Normal file
0
maths/numerical_analysis/__init__.py
Normal file
0
maths/numerical_analysis/__init__.py
Normal file
0
maths/special_numbers/__init__.py
Normal file
0
maths/special_numbers/__init__.py
Normal file
0
neural_network/activation_functions/__init__.py
Normal file
0
neural_network/activation_functions/__init__.py
Normal file
|
@ -7,7 +7,8 @@ https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Mish
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from softplus import softplus
|
|
||||||
|
from .softplus import softplus
|
||||||
|
|
||||||
|
|
||||||
def mish(vector: np.ndarray) -> np.ndarray:
|
def mish(vector: np.ndarray) -> np.ndarray:
|
||||||
|
|
|
@ -6,7 +6,6 @@ lint.ignore = [ # `ruff rule S101` for a description of that rule
|
||||||
"EM101", # Exception must not use a string literal, assign to variable first
|
"EM101", # Exception must not use a string literal, assign to variable first
|
||||||
"EXE001", # Shebang is present but file is not executable" -- FIX ME
|
"EXE001", # Shebang is present but file is not executable" -- FIX ME
|
||||||
"G004", # Logging statement uses f-string
|
"G004", # Logging statement uses f-string
|
||||||
"INP001", # File `x/y/z.py` is part of an implicit namespace package. Add an `__init__.py`. -- FIX ME
|
|
||||||
"PGH003", # Use specific rule codes when ignoring type issues -- FIX ME
|
"PGH003", # Use specific rule codes when ignoring type issues -- FIX ME
|
||||||
"PLC1901", # `{}` can be simplified to `{}` as an empty string is falsey
|
"PLC1901", # `{}` can be simplified to `{}` as an empty string is falsey
|
||||||
"PLW060", # Using global for `{name}` but no assignment is done -- DO NOT FIX
|
"PLW060", # Using global for `{name}` but no assignment is done -- DO NOT FIX
|
||||||
|
|
Loading…
Reference in New Issue
Block a user