Skip to content

Commit

Permalink
removed whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler committed Nov 7, 2023
1 parent c10a30e commit de971cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/changelog.md
Expand Up @@ -2,6 +2,8 @@

### 3.8.0 (2023-11-2)
* Replaced sklearn LinearRegression with a scipy version
* Removed sklearn from requirements
* Deprecated score property in OffsetModel
* Various bug fixes and code improvements

### 3.7.0 (2023-10-23)
Expand Down Expand Up @@ -704,7 +706,7 @@

### 2.9.0 (2020-06-05)

* Add full fledged cloud based API client. This client seamlessly manages authentication tokens behind the scenes.
* Add full-fledged cloud based API client. This client seamlessly manages authentication tokens behind the scenes.
* Update CLI data request methods to make use of new cloud based client.

### 2.8.7 (2020-06-03)
Expand Down
2 changes: 2 additions & 0 deletions redvox/common/offset_model.py
Expand Up @@ -203,6 +203,7 @@ def __init__(
binned_df = full_df.sort_values(by=["times"])

# Compute the weighted linear regression
self.score = 0.0
self.slope, zero_intercept = offset_weighted_linear_regression(
latencies=binned_df["latencies"].values,
offsets=binned_df["offsets"].values,
Expand All @@ -224,6 +225,7 @@ def __init__(
use_model = self.slope != 0.0
# if data or model is not sufficient, use the offset corresponding to the lowest latency:
if not use_model:
self.score = 0.0
self.slope = 0.0
if all(np.nan_to_num(latencies) == 0.0):
self.intercept = 0.0
Expand Down

0 comments on commit de971cb

Please sign in to comment.