Skip to content

Commit 48506ba

Browse files
authored
[RELEASE]: v0.9.9 (#1700)
[RELEASE]: v0.9.9
1 parent 15d8ce9 commit 48506ba

File tree

8 files changed

+78
-270
lines changed

8 files changed

+78
-270
lines changed

.circleci/config.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
# Use the latest 2.1 version of CircleCI pipeline process engine.
24
version: 2.1
35

@@ -54,6 +56,7 @@ jobs:
5456
TOXENV: coverage,doctest,type,check
5557
TOX_INSTALL_DIR: .env
5658
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
59+
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
5760

5861
steps:
5962
- checkout
@@ -69,6 +72,7 @@ jobs:
6972
TOXENV: coverage,doctest,type,check
7073
TOX_INSTALL_DIR: .env
7174
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
75+
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
7276

7377
steps:
7478
- checkout
@@ -101,16 +105,29 @@ jobs:
101105

102106
steps:
103107
- checkout
108+
- run:
109+
name: Setup python3
110+
command: |
111+
pyenv global 3.8.13 > /dev/null && activated=0 || activated=1
112+
if [[ $activated -ne 0 ]]; then
113+
for i in {1..6}; do
114+
pyenv install 3.8.13 && break || sleep $((2 ** $i))
115+
done
116+
pyenv global 3.8.13
117+
fi
104118
- setup_dependencies
105119
- run:
106120
name: "Run Tox"
107-
command: tox
121+
no_output_timeout: 60m
122+
command: |
123+
export PYTHONUNBUFFERED=1
124+
tox
108125
109126
Python37-Integration-Tests:
110127
docker:
111128
- image: cimg/python:3.7
112129
environment:
113-
TOXENV: complex,spark,type,check
130+
TOXENV: complex,type,check
114131
TOX_INSTALL_DIR: .env
115132
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
116133

@@ -119,7 +136,10 @@ jobs:
119136
- setup_dependencies
120137
- run:
121138
name: "Run Tox"
122-
command: tox
139+
no_output_timeout: 60m
140+
command: |
141+
export PYTHONUNBUFFERED=1
142+
tox
123143
124144
Python36-Integration-Tests:
125145
docker:
@@ -139,17 +159,16 @@ jobs:
139159
workflows:
140160
version: 2
141161

142-
Interation-Tests:
162+
Integration-Tests:
143163
jobs:
144164
- Python38-Integration-Tests:
145165
<<: *run_complex
146166
- Python37-Integration-Tests:
147-
<<: *run_complex
167+
<<: *run_complex
148168
- Python36-Integration-Tests:
149169
<<: *run_complex
150170
Unit-Tests:
151171
jobs:
152172
- Python37-Unit-Tests
153173
- Python36-Unit-Tests
154174
- Python38-Unit-Tests
155-

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8-
## [0.9.9]
8+
## [0.9.10]
99
### [Breaking Changes]
1010
### [Added]
1111
### [Changed]
1212
### [Deprecated]
1313
### [Removed]
1414

15+
## [0.9.9] - 2022-04-14
16+
### [Added]
17+
18+
* PR #1690: Bump numpy version for Mac M1 compat
19+
* PR #1696: Fix linting
20+
* PR #1694: Fix test loss
21+
* PR #1693: Update black version to fix build
22+
* PR #1671: Fix flaky test
23+
* PR #1688: Fix branch filtering for complex tests
24+
* PR #1686: Switch to CircleCI badge
25+
* PR #1685: Migrating travis -> circle
26+
27+
28+
### [Contributors]
29+
30+
Thanks to @rsmith49, @zexuan-zhou, @humzaiqbal, @fpoms, @crawlingcub, and @henryre for contributions!
31+
32+
1533
## [0.9.8] - 2021-09-23
1634
### [Added]
1735

requirements.txt

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,47 @@
1010

1111
# General scientific computing
1212

13-
numpy>=1.16.5,<=1.22.3
14-
scipy>=1.2.0,<2.0.0
13+
numpy>=1.16.5
14+
scipy>=1.2.0
1515

1616
# Data storage and function application
17-
pandas>=1.0.0,<2.0.0
18-
tqdm>=4.33.0,<5.0.0
17+
pandas>=1.0.0
18+
tqdm>=4.33.0
1919

2020
# Internal models
21-
scikit-learn>=0.20.2,<1.1
22-
torch>=1.2.0,<2.0.0
21+
scikit-learn>=0.20.2
22+
torch>=1.2.0
2323
munkres>=1.0.6
2424

2525
# LF dependency learning
26-
networkx>=2.2,<2.7
26+
networkx>=2.2
2727

2828
# Model introspection tools
29-
tensorboard>=2.0.0,<2.7.0
29+
tensorboard>=2.9.1
3030

3131
#### EXTRA/TEST LIBRARIES
3232

3333
# spaCy (NLP)
34-
spacy>=2.1.0,<3.0.0
35-
blis>=0.3.0,<=0.7.7
34+
spacy>=2.1.0
35+
blis>=0.3.0
3636

3737
# Dask (parallelism)
38-
dask[dataframe]>=2020.12.0,<2022.04.1
39-
distributed>=2020.12.0,<2022.04.1
38+
dask[dataframe]>=2020.12.0
39+
distributed>=2020.12.0
4040

4141
# Dill (serialization)
42-
dill>=0.3.0,<0.4.0
42+
dill>=0.3.0
4343

4444

4545
#### DEV TOOLS
4646

4747
black>=22.3
48-
flake8>=3.7.0,<4.0.0
49-
isort>=4.3.0,<5.0.0
50-
mypy==0.931
51-
pydocstyle>=4.0.0,<5.0.0
48+
flake8>=3.7.0
49+
isort>=4.3.0
50+
mypy==0.760
51+
pydocstyle>=4.0.0
5252
pytest>=5.0.0,<6.0.0
53-
pytest-cov>=2.7.0,<3.0.0
54-
pytest-doctestplus>=0.3.0,<0.4.0
55-
tox>=3.13.0,<4.0.0
53+
pytest-cov>=2.7.0
54+
pytest-doctestplus>=0.3.0
55+
tox>=3.13.0
56+
protobuf==3.19.4

setup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
include_package_data=True,
3737
install_requires=[
3838
"munkres>=1.0.6",
39-
"numpy>=1.16.5,<=1.22.3",
40-
"scipy>=1.2.0,<2.0.0",
41-
"pandas>=1.0.0,<2.0.0",
42-
"tqdm>=4.33.0,<5.0.0",
43-
"scikit-learn>=0.20.2,<1.1",
44-
"torch>=1.2.0,<2.0.0",
45-
"tensorboard>=2.0.0,<2.7.0",
46-
"networkx>=2.2,<2.7",
39+
"numpy>=1.16.5",
40+
"scipy>=1.2.0",
41+
"pandas>=1.0.0",
42+
"tqdm>=4.33.0",
43+
"scikit-learn>=0.20.2",
44+
"torch>=1.2.0",
45+
"tensorboard>=2.9.1",
46+
"networkx>=2.2",
4747
],
4848
python_requires=">=3.6",
4949
keywords="machine-learning ai weak-supervision",

snorkel/labeling/model/label_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,14 +569,14 @@ def _set_class_balance(
569569
3) Assume uniform class distribution
570570
"""
571571
if class_balance is not None:
572-
self.p = np.array(class_balance)
572+
self.p = np.array(class_balance) # type: ignore
573573
if len(self.p) != self.cardinality:
574574
raise ValueError(
575575
f"class_balance has {len(self.p)} entries. Does not match LabelModel cardinality {self.cardinality}."
576576
)
577577
elif Y_dev is not None:
578-
class_counts = Counter(Y_dev)
579-
sorted_counts = np.array([v for k, v in sorted(class_counts.items())])
578+
class_counts = Counter(Y_dev) # type: ignore
579+
sorted_counts = np.array([v for k, v in sorted(class_counts.items())]) # type: ignore
580580
self.p = sorted_counts / sum(sorted_counts)
581581
if len(self.p) != self.cardinality:
582582
raise ValueError(

snorkel/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
_MAJOR = "0"
22
_MINOR = "9"
3-
_REVISION = "9+dev"
3+
_REVISION = "9"
44

55
VERSION_SHORT = f"{_MAJOR}.{_MINOR}"
66
VERSION = f"{_MAJOR}.{_MINOR}.{_REVISION}"

test/labeling/apply/test_lf_applier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def f_bad(x: DataPoint) -> int:
7070
L_EXPECTED_BAD = np.array([[-1, -1], [0, -1], [-1, -1], [-1, -1], [-1, -1]])
7171
L_PREPROCESS_EXPECTED = np.array([[-1, -1], [0, 0], [-1, 0], [-1, 0], [-1, -1]])
7272

73-
TEXT_DATA = ["Jane", "Jane plays soccer.", "Jane plays soccer."]
73+
TEXT_DATA = ["Jane.", "Jane plays soccer.", "Jane plays soccer."]
7474
L_TEXT_EXPECTED = np.array([[0, -1], [0, 0], [0, 0]])
7575

7676

0 commit comments

Comments
 (0)