Skip to content

Commit

Permalink
[CI] Fix code format lint (ray-project#37755)
Browse files Browse the repository at this point in the history
ray-project#37566 and then ray-project#36980 broke lint. This PR fixes the errors.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: NripeshN <[email protected]>
  • Loading branch information
bveeramani authored and NripeshN committed Aug 15, 2023
1 parent 87faa81 commit e7b9f74
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pandas as pd
from pathlib import Path
import torch.nn as nn
from ray import tune
from ray import tune # noqa: F401
import tqdm
import tempfile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ python finetune_hf_llm.py \
--train_path ${TRAIN_PATH} \
--test_path ${TEST_PATH} \
--special_token_path ${TOKEN_PATH} \
$additional_args
"$additional_args"

echo "Process completed."
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ python finetune_hf_llm.py \
--train_path ${TRAIN_PATH} \
--test_path ${TEST_PATH} \
--special_token_path ${TOKEN_PATH} \
$additional_args
"$additional_args"

echo "Process completed."
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ python finetune_hf_llm.py \
--train_path ${TRAIN_PATH} \
--test_path ${TEST_PATH} \
--special_token_path ${TOKEN_PATH} \
$additional_args
"$additional_args"

echo "Process completed."
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

#!/bin/bash
python run_on_every_node.py run "awsv2 configure set s3.max_concurrent_requests 32 && awsv2 configure set default.s3.preferred_transfer_client crt && awsv2 configure set default.s3.target_bandwidth 100Gb/s && awsv2 configure set default.s3.multipart_chunksize 8MB"
25 changes: 13 additions & 12 deletions python/ray/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1946,8 +1946,8 @@ def sum(
ignore_nulls: Whether to ignore null values. If ``True``, null
values are ignored when computing the sum. If ``False``,
when a null value is encountered, the output is ``None``.
Ray Data considers ``np.nan``, ``None``, and ``pd.NaT`` to be null values.
Default is ``True``.
Ray Data considers ``np.nan``, ``None``, and ``pd.NaT`` to be null
values. Default is ``True``.
Returns:
The sum result.
Expand Down Expand Up @@ -1988,8 +1988,8 @@ def min(
ignore_nulls: Whether to ignore null values. If ``True``, null
values are ignored when computing the min; if ``False``,
when a null value is encountered, the output is ``None``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null values.
Default is ``True``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null
values. Default is ``True``.
Returns:
The min result.
Expand Down Expand Up @@ -2030,8 +2030,8 @@ def max(
ignore_nulls: Whether to ignore null values. If ``True``, null
values are ignored when computing the max; if ``False``,
when a null value is encountered, the output is ``None``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null values.
Default is ``True``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null
values. Default is ``True``.
Returns:
The max result.
Expand Down Expand Up @@ -2072,8 +2072,8 @@ def mean(
ignore_nulls: Whether to ignore null values. If ``True``, null
values are ignored when computing the mean; if ``False``,
when a null value is encountered, the output is ``None``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null values.
Default is ``True``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null
values. Default is ``True``.
Returns:
The mean result.
Expand Down Expand Up @@ -2108,7 +2108,8 @@ def std(
numerical stability, and is computable in a single pass. This may give
different (but more accurate) results than NumPy, Pandas, and sklearn, which
use a less numerically stable two-pass algorithm.
To learn more, see `the Wikapedia article <https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm>`_.
To learn more, see
`the Wikapedia article <https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm>`_.
Examples:
>>> import ray
Expand All @@ -2127,8 +2128,8 @@ def std(
ignore_nulls: Whether to ignore null values. If ``True``, null
values are ignored when computing the std; if ``False``,
when a null value is encountered, the output is ``None``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null values.
Default is ``True``.
This method considers ``np.nan``, ``None``, and ``pd.NaT`` to be null
values. Default is ``True``.
Returns:
The standard deviation result.
Expand All @@ -2144,7 +2145,7 @@ def std(
If the dataset is empty, all values are null. If ``ignore_nulls`` is
``False`` and any value is null, then the output is ``None``.
"""
""" # noqa: E501
ret = self._aggregate_on(Std, on, ignore_nulls, ddof=ddof)
return self._aggregate_result(ret)

Expand Down

0 comments on commit e7b9f74

Please sign in to comment.