Skip to content

Commit

Permalink
Add missing license headers.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 460179159
Change-Id: I8f9a9546499dcc9335fcfd7167af04a230b24a17
  • Loading branch information
lanctot committed Jul 11, 2022
1 parent 0b5752a commit 4924f3d
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 0 deletions.
14 changes: 14 additions & 0 deletions open_spiel/python/algorithms/mmd_dilated.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

r"""Python implementation of the magnetic mirror descent (MMD) algorithm.
The algorithm operated over the sequence-from with dilated entropy.
Expand Down
14 changes: 14 additions & 0 deletions open_spiel/python/algorithms/mmd_dilated_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Tests for open_spiel.python.mmd_dilated.py."""
import copy

Expand Down
14 changes: 14 additions & 0 deletions open_spiel/python/algorithms/sequence_form_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Useful sequence form functions used in the MMD implementation."""

import numpy as np
Expand Down
14 changes: 14 additions & 0 deletions open_spiel/python/algorithms/sequence_form_utils_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Tests for open_spiel.python.sequence_form_utils.py."""

from absl.testing import absltest
Expand Down
14 changes: 14 additions & 0 deletions open_spiel/python/examples/mmd_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Example of MMD with dilated entropy to solve for QRE in Leduc Poker."""

from absl import app
Expand Down
14 changes: 14 additions & 0 deletions open_spiel/python/examples/mmd_matrix_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Example: using MMD with dilated entropy to solve for QRE in a matrix Game."""

from absl import app
Expand Down
14 changes: 14 additions & 0 deletions open_spiel/python/examples/mmd_nash_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Example: MMD with dilated entropy to compute approx. Nash in Kuhn poker."""

from absl import app
Expand Down

0 comments on commit 4924f3d

Please sign in to comment.