Skip to content

Commit

Permalink
Added/updated copyright info. Change package name to provis.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessevig committed Jun 25, 2020
1 parent 1a2e4af commit b23402d
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 30 deletions.
29 changes: 6 additions & 23 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,31 +1,14 @@
BSD 3-Clause License

Copyright (c) 2020, Salesforce.
Copyright (c) 2020, Salesforce.com, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE

See attribution.txt for additional licensing information.
9 changes: 8 additions & 1 deletion notebooks/provis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"### Notes\n",
"* The tool visualizes attention between different positions in a sequence.\n",
"* It does not currently visualize attention from a given position to itself.\n",
"* Attention is visualized as unidirectional using the maximum of the two directed attention weights. "
"* Attention is visualized as unidirectional using the maximum of the two directed attention weights. \n"
]
},
{
Expand All @@ -27,6 +27,13 @@
},
"outputs": [],
"source": [
"\"\"\"\n",
"Copyright (c) 2018, salesforce.com, inc.\n",
"All rights reserved.\n",
"SPDX-License-Identifier: BSD-3-Clause\n",
"For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause\n",
"\"\"\"\n",
"\n",
"import io\n",
"import urllib\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"""Compute aggregate statistics of attention edge features over a dataset"""
"""Compute aggregate statistics of attention edge features over a dataset
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

from collections import defaultdict

Expand Down
7 changes: 7 additions & 0 deletions protein_attention/attention_analysis/features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

from abc import ABC, abstractmethod


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"""Report pairwise correlations of attention to specific amino acids, and compare to blosum"""
"""Report pairwise correlations of attention to specific amino acids, and compare to blosum
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

import json
import pickle
Expand Down
7 changes: 7 additions & 0 deletions protein_attention/attention_analysis/report_edge_features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

import json
import pathlib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"""Create combined plot from multiple features"""
"""Create combined plot from multiple features
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

import json
import pathlib
Expand Down
6 changes: 6 additions & 0 deletions protein_attention/attention_analysis/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

import torch


Expand Down
8 changes: 7 additions & 1 deletion protein_attention/probing/metrics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"""Metrics for evaluating probing classifiers"""
"""Metrics for evaluating probing classifiers
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

from typing import Sequence, Union

Expand Down
8 changes: 7 additions & 1 deletion protein_attention/probing/report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"""Report on diagnostic classifiers for probing analysis"""
"""Report on diagnostic classifiers for probing analysis
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

import json
import pathlib
Expand Down
6 changes: 6 additions & 0 deletions protein_attention/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""

from pathlib import Path


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
requirements = reqs.read().split()

setup(
name='protein-attention',
name='provis',
packages=["protein_attention"],
version='0.0.1',
install_requires=requirements,
Expand Down

0 comments on commit b23402d

Please sign in to comment.