Skip to content

Commit b99dcf2

Browse files
committed
readme: fix python code block
1 parent 80df095 commit b99dcf2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ python code of `hintsvm` are set in the environment variables:
6868

6969
The main usage of `libact` is as follows:
7070

71-
```python
72-
qs = UncertaintySampling(trn_ds, method='lc') # query strategy instance
73-
74-
ask_id = qs.make_query() # let the specified query strategy suggest a data to query
75-
X, y = zip(*trn_ds.data)
76-
lb = lbr.label(X[ask_id]) # query the label of unlabeled data from labeler instance
77-
trn_ds.update(ask_id, lb) # update the dataset with newly queried data
78-
```
71+
```python
72+
qs = UncertaintySampling(trn_ds, method='lc') # query strategy instance
73+
74+
ask_id = qs.make_query() # let the specified query strategy suggest a data to query
75+
X, y = zip(*trn_ds.data)
76+
lb = lbr.label(X[ask_id]) # query the label of unlabeled data from labeler instance
77+
trn_ds.update(ask_id, lb) # update the dataset with newly queried data
78+
```
7979

8080
Some examples are available under the `examples` directory. Before running, use
8181
`examples/get_dataset.py` to retrieve the dataset used by the examples.
@@ -88,4 +88,4 @@ Available examples:
8888

8989
# Acknowledgments
9090

91-
The authors thank Chih-Wei Chang and other members of the [Computational Learning Lab](https://learner.csie.ntu.edu.tw/) at National Taiwan University for valuable discussions and various contributions to making this package better.
91+
The authors thank Chih-Wei Chang and other members of the [Computational Learning Lab](https://learner.csie.ntu.edu.tw/) at National Taiwan University for valuable discussions and various contributions to making this package better.

0 commit comments

Comments
 (0)