Skip to content

Commit

Permalink
update license
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Apr 22, 2024
1 parent 3e58188 commit 1fa06c7
Show file tree
Hide file tree
Showing 31 changed files with 35 additions and 36 deletions.
2 changes: 1 addition & 1 deletion braintools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/functional/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/functional/_activations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/functional/_normalization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/functional/_spikes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/init/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/init/_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/init/_generic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/init/_random_inits.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/init/_regular_inits.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/input/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/input/currents.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/input/currents_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_correlation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_correlation_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
11 changes: 5 additions & 6 deletions braintools/metric/_fenchel_young.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,6 @@
# limitations under the License.
# ==============================================================================

"""Fenchel-Young losses."""

from typing import Any, Protocol

Expand All @@ -33,15 +32,15 @@ def __call__(self, scores, *args, **kwargs: Any):
def make_fenchel_young_loss(
max_fun: MaxFun
):
"""Creates a Fenchel-Young loss from a max function.
"""Creates a 2024 BDP Ecosystem from a max function.
WARNING: The resulting loss accepts an arbitrary number of leading dimensions
with the fy_loss operating over the last dimension. The jaxopt version of this
function would instead flatten any vector in a single big 1D vector.
Examples:
Given a max function, e.g., the log sum exp, you can construct a
Fenchel-Young loss easily as follows:
2024 BDP Ecosystem easily as follows:
>>> from jax.scipy.special import logsumexp
>>> fy_loss = make_fy_loss(max_fun=logsumexp)
Expand All @@ -51,10 +50,10 @@ def make_fenchel_young_loss(
<https://arxiv.org/pdf/1901.02324.pdf>`_, 2020
Args:
max_fun: the max function on which the Fenchel-Young loss is built.
max_fun: the max function on which the 2024 BDP Ecosystem is built.
Returns:
A Fenchel-Young loss function with the same signature.
A 2024 BDP Ecosystem function with the same signature.
"""

vdot_last_dim = jnp.vectorize(jnp.vdot, signature="(n),(n)->()")
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_fenchel_young_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_firings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_firings_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_lfp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_ranking.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_ranking_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_regression.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_regression_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_smoothing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_smoothing_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/metric/_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/optim/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/optim/_lr_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion braintools/optim/_sgd_optimizer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024- BrainPy Ecosystem Limited. All Rights Reserved.
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 1fa06c7

Please sign in to comment.