Skip to content

Commit

Permalink
Fix typos. (#5481)
Browse files Browse the repository at this point in the history
Replaces outdated PR #2907. (Just wanted to clear that PR off the backlog since it was pre-rebase and has old history.)

Authors:
  - Bradley Dice (https://github.com/bdice)
  - Dante Gama Dessavre (https://github.com/dantegd)

Approvers:
  - Simon Adorf (https://github.com/csadorf)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #5481
  • Loading branch information
bdice authored Jun 29, 2023
1 parent f109fc6 commit 00bdad3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@
- PR #2310: Pinning ucx-py to 0.14 to make 0.15 CI pass
- PR #1945: enable clang tidy
- PR #2339: umap performance improvements
- PR #2308: Using fixture for Dask client to eliminate possiblity of not closing
- PR #2308: Using fixture for Dask client to eliminate possibility of not closing
- PR #2345: make C++ logger level definition to be the same as python layer
- PR #2329: Add short commit hash to conda package name
- PR #2362: Implement binary/multi-classification log loss with cupy
Expand Down Expand Up @@ -1445,7 +1445,7 @@
- PR #2496: Fixing indentation for simulate_data in test_fil.py
- PR #2494: Set QN regularization strength consistent with scikit-learn
- PR #2486: Fix cupy input to kmeans init
- PR #2497: Changes to accomodate cuDF unsigned categorical changes
- PR #2497: Changes to accommodate cuDF unsigned categorical changes
- PR #2209: Fix FIL benchmark for gpuarray-c input
- PR #2507: Import `treelite.sklearn`
- PR #2521: Fixing invalid smem calculation in KNeighborsCLassifier
Expand Down Expand Up @@ -1987,7 +1987,7 @@
- PR #1208: compile dbscan bug
- PR #1016: Use correct libcumlprims version in GPU CI
- PR #1040: Update version of numba in development conda yaml files
- PR #1043: Updates to accomodate cuDF python code reorganization
- PR #1043: Updates to accommodate cuDF python code reorganization
- PR #1044: Remove nvidia driver installation from ci/cpu/build.sh
- PR #991: Barnes Hut TSNE Memory Issue Fixes
- PR #1075: Pinning Dask version for consistent CI results
Expand Down Expand Up @@ -2196,7 +2196,7 @@
- PR #430: Add R-Squared Score to ml primitives
- PR #463: Add matrix gather to ml primitives
- PR #435: Expose cumlhandle in cython + developer guide
- PR #455: Remove default-stream arguement across ml-prims and cuML
- PR #455: Remove default-stream argument across ml-prims and cuML
- PR #375: cuml cpp shared library renamed to libcuml++.so
- PR #460: Random Forest & Decision Trees (Single-GPU, Classification)
- PR #491: Add doxygen build target for ml-prims
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/sg/genetic/evolution_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class GeneticEvolutionTest : public ::testing::Test {
const int n_tr_rows = 250;
const int n_tst_rows = 50;
const int n_cols = 2;
const float tolerance = 0.025f; // assuming upto 2.5% tolerance for results(for now)
const float tolerance = 0.025f; // assuming up to 2.5% tolerance for results(for now)

// Contains synthetic Data
// y =
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/sg/genetic/program_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class GeneticProgramTest : public ::testing::Test {
const int n_progs = 2;
const int n_samples = 25;
const int n_samples2 = 5;
const float tolerance = 0.025f; // assuming upto 2.5% tolerance for results(for now)
const float tolerance = 0.025f; // assuming up to 2.5% tolerance for results(for now)

// 25*3 datapoints generated using numpy
// y = X[0] * X[1] + X[2] + 0.5
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/sg/svc_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ TYPED_TEST(SmoSolverTest, SvcTest)
{1, 1, 2, 2, 1, 2, 2, 3},
{0, 2, 3, 5},
{-1.0, -1.4, 0.2, -0.2, 1.4, 1.0}}},
{// C == 0 marks a special tast case with sample weights
{// C == 0 marks a special test case with sample weights
svcInput<TypeParam>{0,
0.001,
KernelParams{LINEAR, 3, 1, 0},
Expand Down
2 changes: 1 addition & 1 deletion python/cuml/internals/input_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def get_supported_input_type(X):
except UnavailableError:
pass

# Return None if this type isnt supported
# Return None if this type is not supported
return None


Expand Down
12 changes: 6 additions & 6 deletions python/cuml/internals/logger.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ cdef extern from "cuml/common/logger.hpp" nogil:
cdef int CUML_LEVEL_OFF


"""Enables all log messages upto and including `trace()`"""
"""Enables all log messages up to and including `trace()`"""
level_trace = CUML_LEVEL_TRACE

"""Enables all log messages upto and including `debug()`"""
"""Enables all log messages up to and including `debug()`"""
level_debug = CUML_LEVEL_DEBUG

"""Enables all log messages upto and including `info()`"""
"""Enables all log messages up to and including `info()`"""
level_info = CUML_LEVEL_INFO

"""Enables all log messages upto and including `warn()`"""
"""Enables all log messages up to and including `warn()`"""
level_warn = CUML_LEVEL_WARN

"""Enables all log messages upto and include `error()`"""
"""Enables all log messages up to and include `error()`"""
level_error = CUML_LEVEL_ERROR

"""Enables only `critical()` messages"""
Expand Down Expand Up @@ -121,7 +121,7 @@ def set_level(level):
.. code-block:: python
# regular usage of setting a logging level for all subsequent logs
# in this case, it will enable all logs upto and including `info()`
# in this case, it will enable all logs up to and including `info()`
logger.set_level(logger.level_info)
# in case one wants to temporarily set the log level for a code block
Expand Down

0 comments on commit 00bdad3

Please sign in to comment.