britekit 0.0.10__py3-none-any.whl → 0.0.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of britekit might be problematic. Click here for more details.

britekit/__about__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Jan Huus <jhuus1@gmail.com>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.0.10"
4
+ __version__ = "0.0.11"
@@ -68,7 +68,6 @@ def ensemble(
68
68
  metric: str = "micro_roc",
69
69
  annotations_path: str = "",
70
70
  recordings_path: Optional[str] = None,
71
- output_path: str = "",
72
71
  ) -> None:
73
72
  """
74
73
  Find the best ensemble of a given size from a group of checkpoints.
@@ -84,7 +83,6 @@ def ensemble(
84
83
  metric (str): Metric to use to compare ensembles (default=micro_roc).
85
84
  annotations_path (str): Path to CSV file containing ground truth annotations.
86
85
  recordings_path (str, optional): Directory containing audio recordings. Defaults to annotations directory.
87
- output_path (str): Directory where reports will be saved.
88
86
  """
89
87
  import glob
90
88
  import itertools
@@ -216,14 +214,6 @@ def ensemble(
216
214
  required=False,
217
215
  help="Recordings directory. Default is directory containing annotations file.",
218
216
  )
219
- @click.option(
220
- "-o",
221
- "--output",
222
- "output_path",
223
- type=click.Path(file_okay=False, dir_okay=True),
224
- required=True,
225
- help="Path to output directory.",
226
- )
227
217
  def _ensemble_cmd(
228
218
  cfg_path: Optional[str],
229
219
  ckpt_path: str,
@@ -232,7 +222,6 @@ def _ensemble_cmd(
232
222
  metric: str,
233
223
  annotations_path: str,
234
224
  recordings_path: Optional[str],
235
- output_path: str,
236
225
  ) -> None:
237
226
  util.set_logging()
238
- ensemble(cfg_path, ckpt_path, ensemble_size, num_tries, metric, annotations_path, recordings_path, output_path)
227
+ ensemble(cfg_path, ckpt_path, ensemble_size, num_tries, metric, annotations_path, recordings_path)
@@ -104,6 +104,10 @@ def tune(
104
104
  to_path = os.path.join(output_path, Path(cfg_path).name)
105
105
  shutil.copy(cfg_path, to_path)
106
106
 
107
+ if param_path:
108
+ to_path = os.path.join(output_path, Path(param_path).name)
109
+ shutil.copy(param_path, to_path)
110
+
107
111
  elapsed_time = util.format_elapsed_time(start_time, time.time())
108
112
  logging.info(f"Elapsed time = {elapsed_time}")
109
113
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: britekit
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Core functions for bioacoustic recognizers.
5
5
  Project-URL: Documentation, https://github.com/jhuus/BriteKit#readme
6
6
  Project-URL: Issues, https://github.com/jhuus/BriteKit/issues
@@ -32,7 +32,7 @@ britekit/testing/per_segment_tester.py,sha256=5zFpe8wVEEtVjthKKFRb0dwE9T0v4JIll9
32
32
  britekit/training_db/extractor.py,sha256=yblYTco9b-bZhBTOkGkNANOabsNo8IfQGJxPvh_eJyo,8406
33
33
  britekit/training_db/training_data_provider.py,sha256=V5aBjsCvrWViZ0Jv05hgcKRizcAXmqoj4q3hAHedoD8,5651
34
34
  britekit/training_db/training_db.py,sha256=xZqN1sMC2yFMEDm9rOrCigN3CUfUzTaTUkX3IZ_zHRc,64922
35
- britekit/__about__.py,sha256=litL8LIslwUFrsy5kr1J7Z0vtOgnQHWc_0EIkucH0_w,123
35
+ britekit/__about__.py,sha256=CGewA3qxQM5QGFXz6GxYj1rsR4YlBI3pPly5AWErQFI,123
36
36
  britekit/__init__.py,sha256=RpruzdjbvTcFNf21zJYY8HrAhJei91FtNNLjIBmw-kw,1857
37
37
  britekit/install/data/classes.csv,sha256=OdTZ8oQdx7N-HKyhftxZStGZYsjhCy4UbanwtQJ2wBM,54
38
38
  britekit/install/data/ignore.txt,sha256=RbKvEHtUCbgRYolwR1IucClwyD3q7l2s6QuRjph-Us4,68
@@ -72,7 +72,7 @@ britekit/commands/_ckpt_ops.py,sha256=2l-eJuxGBTHtQZ2Nked82KeSbP7WIwZ-yAYuM4v4Hl
72
72
  britekit/commands/_db_add.py,sha256=brUCb7LZVJ7XezlSmpaKilz9hYoII_DvfjhS1v64cr0,7249
73
73
  britekit/commands/_db_delete.py,sha256=ziqxnQhBOjHgqlu0uk6GA8A7I9FOMYcPEscmPxThAVY,14520
74
74
  britekit/commands/_embed.py,sha256=gTQK4YOilwsZCY2r8HhaWUZBpMkA-OEZsR5RkNV1euM,4388
75
- britekit/commands/_ensemble.py,sha256=Pxh2Sg8otrkdOo9frkP-DReWkDng9Y9oL0Y6R3SesrQ,7883
75
+ britekit/commands/_ensemble.py,sha256=O6_BDgHWXdlCn_JdbZdI8X5NdGlnjJiz6nuJfVYkE0g,7583
76
76
  britekit/commands/_extract.py,sha256=iz9VG1KnV-d7cFliQpmWiSi6Ezt9hCm5Iur9r-XBb20,8859
77
77
  britekit/commands/_find_dup.py,sha256=Zig-s04BUQzeY4s7DjEQM53-e6KgCXxSw05R6BfSkNw,6350
78
78
  britekit/commands/_inat.py,sha256=ojTre5BCj_jmEh6x2kzNhcminLN6h5bzsYpxyrxGRdQ,4164
@@ -83,13 +83,13 @@ britekit/commands/_reextract.py,sha256=zth_E3IyBlrJ-ovHxzpyZntbamEDwelBZ3QrzozFw
83
83
  britekit/commands/_reports.py,sha256=Xxj9Au-v6I9X0jnKye6GaLggasXz5XhVVEG5bLfNQSg,22027
84
84
  britekit/commands/_search.py,sha256=b7cIFSI3AuPhreYGO8HGqX12TKaOJ5uoc1uiqid04Mk,9988
85
85
  britekit/commands/_train.py,sha256=40Zdu9FZkmdA0bIuTK-oADw-4X6aMQYS1XGigheocdo,4152
86
- britekit/commands/_tune.py,sha256=xRnSI4VYLj5IrQS-TVgwRvcC7XkvUS8ETLpGYs8FIc0,7328
86
+ britekit/commands/_tune.py,sha256=CFEY08SsPF_2s_fknUHJLEsho6vL_it8NoOhB2RoVU0,7468
87
87
  britekit/commands/_wav2mp3.py,sha256=2Q4cjT6OhJmBPTNzGRMrDd6dSdBBufuQdjhH1V8ghLo,2167
88
88
  britekit/commands/_xeno.py,sha256=_6YxQ7xFdaSy5DNUaigkbYp3E8EhtOhTC9b6OFS0MFA,6026
89
89
  britekit/commands/_youtube.py,sha256=_u1LrwY_2GxllKd505N_2ArFMbACQ_PtVxuqUCYxFe0,2214
90
90
  britekit/core/__init__.py,sha256=QcjcFyvO5KqJLF_HBeqiCk925uU5jTUjIV5lJix9XY4,556
91
- britekit-0.0.10.dist-info/METADATA,sha256=CSjpfbKoD9BknB08SLdo2i_iEt4HmBGTGXnsJvt_5mY,18553
92
- britekit-0.0.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
93
- britekit-0.0.10.dist-info/entry_points.txt,sha256=ycnPy5DLX14RTf7lKfkQAVyIf1B1zTL1gMsHm455wmg,46
94
- britekit-0.0.10.dist-info/licenses/LICENSE.txt,sha256=kPoHm6iop8-CUa_720Tt8gqyvLD6D_7218u1hCCpErk,1092
95
- britekit-0.0.10.dist-info/RECORD,,
91
+ britekit-0.0.11.dist-info/METADATA,sha256=d1VgnfrMq3-tnSABq7aXN8SAMsuZI5ifbPM9MB7yDtE,18553
92
+ britekit-0.0.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
93
+ britekit-0.0.11.dist-info/entry_points.txt,sha256=ycnPy5DLX14RTf7lKfkQAVyIf1B1zTL1gMsHm455wmg,46
94
+ britekit-0.0.11.dist-info/licenses/LICENSE.txt,sha256=kPoHm6iop8-CUa_720Tt8gqyvLD6D_7218u1hCCpErk,1092
95
+ britekit-0.0.11.dist-info/RECORD,,