Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aksnzhy/xlearn
/ functions
Functions
3,349 in github.com/aksnzhy/xlearn
⨍
Functions
3,349
◇
Types & classes
1,370
↓ 14 callers
Method
DirectoryExists
Returns true if pathname describes a directory in the file-system that exists.
gtest/src/gtest-filepath.cc:218
↓ 14 callers
Function
FormatTimeInMillisAsSeconds
Formats the given time in milliseconds as seconds.
gtest/src/gtest.cc:3213
↓ 14 callers
Function
MatchRepetitionAndRegexAtHead
Matches a repeated regex atom followed by a valid simple regular expression. The regex atom is defined as c if escaped is false, or \c otherwise. re
gtest/src/gtest-port.cc:320
↓ 14 callers
Function
Message
Copy constructor.
gtest/fused-src/gtest/gtest.h:3168
↓ 14 callers
Method
setLabel
Wether this dataset contains label y ?
src/reader/parser.h:62
↓ 14 callers
Method
total_part_count
Gets the number of all test parts. This is the sum of the number of successful test parts and the number of failed test parts.
gtest/src/gtest.cc:1877
↓ 13 callers
Function
Check
Prints the message and aborts the program if condition is false.
gtest/test/gtest_environment_test.cc:116
↓ 13 callers
Function
FullMatch
FullMatch(str, re) returns true iff regular expression re matches the entire str. PartialMatch(str, re) returns true iff regular expression re matches
gtest/fused-src/gtest/gtest.h:2061
↓ 13 callers
Method
Get
gtest/src/gtest-internal-inl.h:980
↓ 13 callers
Function
IsAsciiWhiteSpace
gtest/src/gtest-port.cc:215
↓ 13 callers
Function
IsInSet
Returns true iff ch appears anywhere in str (excluding the terminating '\0' character).
gtest/src/gtest-port.cc:203
↓ 13 callers
Method
IsRootDirectory
Returns true if pathname describes a root directory. (Windows has one root directory per disk drive.)
gtest/src/gtest-filepath.cc:248
↓ 13 callers
Function
getEnd
src/base/thread_pool.h:167
↓ 13 callers
Function
getStart
Get start and end index used in multi-thread training
src/base/thread_pool.h:161
↓ 13 callers
Function
print_action
src/base/format_print.h:178
↓ 13 callers
Method
reset
gtest/fused-src/gtest/gtest.h:2014
↓ 13 callers
Method
setTrain
Set file path of training data. Parameters ---------- train_path : str the path of training data
python-package/xlearn/xlearn.py:114
↓ 13 callers
Method
tic
Code start
src/base/timer.cc:35
↓ 13 callers
Method
toc
Code end
src/base/timer.cc:40
↓ 13 callers
Method
total_test_count
Gets the number of all tests.
gtest/src/gtest.cc:755
↓ 12 callers
Method
Failed
Returns true iff the test failed.
gtest/src/gtest.cc:1847
↓ 12 callers
Function
FormatFileLocation
Formats a source file path and a line number as they would appear in an error message from the compiler used to compile this code.
gtest/src/gtest-port.cc:456
↓ 12 callers
Function
GetTestCases
Returns a list of test cases in the given full test names. Args: tests: a list of full test names Returns: A list of test cases from 'te
gtest/test/gtest_shuffle_test.py:110
↓ 12 callers
Function
IsAsciiDigit
Returns true iff ch belongs to the given classification. Unlike similar functions in <ctype.h>, these aren't affected by the current locale.
gtest/src/gtest-port.cc:210
↓ 12 callers
Method
IsPrime
gtest/samples/sample8_unittest.cc:62
↓ 12 callers
Function
RandomSeedFlag
(n)
gtest/test/gtest_shuffle_test.py:74
↓ 12 callers
Method
RemoveFileName
RemoveFileName returns the directory path with the filename removed. Example: FilePath("path/to/file").RemoveFileName() returns "path/to/". If the Fil
gtest/src/gtest-filepath.cc:161
↓ 12 callers
Function
ShuffleFlag
()
gtest/test/gtest_shuffle_test.py:70
↓ 12 callers
Method
fit
Check hyper-parameters, train model, and dump model. Parameters ---------- param : dict hyper-parameter used by xle
python-package/xlearn/xlearn.py:234
↓ 12 callers
Method
metric_type
Metric type
src/loss/metric.h:448
↓ 12 callers
Method
predict
Predict output Parameters ---------- model_path : str. path of model checkpoint. out_path : str, default None. if a p
python-package/xlearn/xlearn.py:258
↓ 12 callers
Method
setSplitor
Set Splitor
src/reader/parser.h:67
↓ 11 callers
Function
AlwaysTrue
gtest/src/gtest.cc:4650
↓ 11 callers
Method
BaseGenerator
gtest/fused-src/gtest/gtest.h:10204
↓ 11 callers
Function
CountIf
gtest/fused-src/gtest/gtest-all.cc:683
↓ 11 callers
Function
FileExist
Check wether the file exists.
src/base/file_util.h:126
↓ 11 callers
Method
GetNumField
Get the number of field.
src/data/model_parameters.h:150
↓ 11 callers
Method
GetNumParameter_v
Get the size of the latent factor. For linear score this value equals zero.
src/data/model_parameters.h:135
↓ 11 callers
Function
ParseInt32Flag
Parses a string for an Int32 flag, in the form of "--flag=value". On success, stores the value of the flag in *value, and returns true. On failure,
gtest/src/gtest.cc:4732
↓ 11 callers
Function
PrintTupleTo
gtest/fused-src/gtest/gtest.h:10016
↓ 11 callers
Function
PrintTupleTo
gtest/include/gtest/gtest-printers.h:825
↓ 11 callers
Function
ReadFileToMemory
Read the whole file to a memory buffer. Return size (byte) of current file.
src/base/file_util.h:245
↓ 11 callers
Method
RemoveDirectoryName
Returns a copy of the FilePath with the directory part removed. Example: FilePath("path/to/file").RemoveDirectoryName() returns FilePath("file"). If t
gtest/src/gtest-filepath.cc:150
↓ 11 callers
Method
RemoveTrailingPathSeparator
If input name has a trailing separator character, remove it and return the name, otherwise return the name string unmodified. On Windows platform, use
gtest/src/gtest-filepath.cc:341
↓ 11 callers
Method
RunAndVerify
Runs gtest_break_on_failure_unittest_ and verifies that it does (or does not) have a seg-fault. Args: env_var_value: value of the GT
gtest/test/gtest_break_on_failure_unittest.py:99
↓ 11 callers
Method
RunAndVerifyWithSharding
Checks that binary runs correct tests for the given filter and shard. Runs all shards of gtest_filter_unittest_ with the given filter, and ve
gtest/test/gtest_filter_unittest.py:287
↓ 11 callers
Function
TestFlag
Verifies that the given flag is affected by the corresponding env var.
gtest/test/gtest_env_var_test.py:73
↓ 11 callers
Function
ThrowNothing
gtest/test/gtest_unittest.cc:3661
↓ 11 callers
Method
copy
gtest/fused-src/gtest/gtest.h:9163
↓ 11 callers
Method
count
Returns the number of live test objects that uses this fixture.
gtest/test/gtest_unittest.cc:4941
↓ 11 callers
Method
pointer
gtest/fused-src/gtest/gtest.h:2596
↓ 11 callers
Function
print_warning
[Warning] blablabla ...
src/base/format_print.h:162
↓ 11 callers
Function
remove
Windows CE doesn't have the remove C function.
gtest/test/gtest-filepath_test.cc:68
↓ 11 callers
Method
setTest
Set file path of test data. Parameters ---------- test_path : str the path of test data.
python-package/xlearn/xlearn.py:132
↓ 11 callers
Method
setValidate
Set file path of validation data. Parameters ---------- val_path : str the path of validation data.
python-package/xlearn/xlearn.py:160
↓ 11 callers
Method
split
------------------------------------------------------------------------------ Split file using mmap() on Unix-like systems. -------------------------
src/reader/file_splitor.cc:40
↓ 10 callers
Function
CaptureStderr
Starts capturing stderr.
gtest/src/gtest-port.cc:659
↓ 10 callers
Function
CreateMetric
src/loss/metric_test.cc:281
↓ 10 callers
Function
DeathTestAbort
Routine for aborting the program which is safe to call from an exec-style death test child process, in which case the error message is propagated back
gtest/src/gtest-death-test.cc:251
↓ 10 callers
Function
DeathTestAbort
Routine for aborting the program which is safe to call from an exec-style death test child process, in which case the error message is propagated back
gtest/fused-src/gtest/gtest-all.cc:6745
↓ 10 callers
Function
DieInside
gtest/test/gtest-death-test_test.cc:125
↓ 10 callers
Function
EqFailure
Constructs and returns the message for an equality assertion (e.g. ASSERT_EQ, EXPECT_STREQ, etc) failure. The first four parameters are the expressio
gtest/src/gtest.cc:1000
↓ 10 callers
Method
FeatMap
Mapping the global feature id to the local server id.
src/distributed/parameter_server.cc:109
↓ 10 callers
Function
ForEach
gtest/src/gtest-internal-inl.h:295
↓ 10 callers
Method
GetServerId
Given a feature id, return the server id, which stores that feature.
src/distributed/parameter_server.cc:103
↓ 10 callers
Function
Int32FromEnvOrDie
Parses the environment variable var as an Int32. If it is unset, returns default_val. If it is not an Int32, prints an error and aborts.
gtest/src/gtest.cc:4426
↓ 10 callers
Function
Int32FromGTestEnv
Reads and returns a 32-bit integer stored in the environment variable corresponding to the given flag; if it isn't set or doesn't represent a valid 32
gtest/src/gtest-port.cc:776
↓ 10 callers
Function
IsNotSubstring
gtest/src/gtest.cc:1295
↓ 10 callers
Function
IsRepeat
gtest/src/gtest-port.cc:214
↓ 10 callers
Method
OnTestProgramStart
gtest/test/gtest_unittest.cc:6706
↓ 10 callers
Method
Passed
gtest/test/gtest-death-test_test.cc:886
↓ 10 callers
Method
Passed
Returns true iff the unit test passed (i.e. all test cases passed).
gtest/src/gtest.cc:3724
↓ 10 callers
Method
Reset
Reset current model parameters.
src/data/model_parameters.h:138
↓ 10 callers
Function
SetEnvVar
Sets the env variable to 'value'; unsets it when 'value' is None.
gtest/test/gtest_color_test.py:47
↓ 10 callers
Function
SkipPrefix
If *pstr starts with the given prefix, modifies *pstr to be right past the prefix and returns true; otherwise leaves *pstr unchanged and returns false
gtest/src/gtest.cc:4663
↓ 10 callers
Method
Use
gtest/test/gtest-linked_ptr_test.cc:51
↓ 10 callers
Function
check_double
Check the parser's result when push data twice
src/reader/parser_test.cc:84
↓ 10 callers
Method
current_test_result
Returns the TestResult for the test that's currently running, or the TestResult for the ad hoc test if no test is running.
gtest/src/gtest.cc:4594
↓ 10 callers
Method
failed_test_count
Gets the number of failed tests.
gtest/src/gtest.cc:734
↓ 10 callers
Function
read_from_disk
src/reader/reader_test.cc:246
↓ 10 callers
Function
write_data
src/reader/reader_test.cc:54
↓ 10 callers
Function
write_data
Write data to disk file
src/reader/parser_test.cc:45
↓ 9 callers
Function
Abort
gtest/src/gtest-port.cc:699
↓ 9 callers
Method
AtEnd
gtest/fused-src/gtest/gtest.h:13858
↓ 9 callers
Method
AtEnd
gtest/include/gtest/internal/gtest-param-util-generated.h:3242
↓ 9 callers
Method
BaseGenerator
gtest/include/gtest/internal/gtest-param-util-generated.h:3191
↓ 9 callers
Method
CalcScore
y = sum( (V_i*V_j)(x_i * x_j) ) Using SSE to accelerate vector operation.
src/score/fm_score.cc:30
↓ 9 callers
Method
Clone
(self)
gtest/scripts/pump.py:589
↓ 9 callers
Function
FOpen
gtest/fused-src/gtest/gtest.h:2879
↓ 9 callers
Method
Get
gtest/fused-src/gtest/gtest-all.cc:1381
↓ 9 callers
Method
GetAuxiliarySize
Get the size of auxiliary cache size.
src/data/model_parameters.h:119
↓ 9 callers
Function
GetElementOr
gtest/src/gtest-internal-inl.h:302
↓ 9 callers
Function
GetTimeInMillis
Returns the current time in milliseconds.
gtest/src/gtest.cc:780
↓ 9 callers
Method
Join
gtest/fused-src/gtest/gtest.h:2399
↓ 9 callers
Method
Passed
Returns true iff the unit test passed (i.e. all test cases passed).
gtest/fused-src/gtest/gtest-all.cc:5208
↓ 9 callers
Function
PrintArrayHelper
gtest/test/gtest-printers_test.cc:597
↓ 9 callers
Method
RunAndVerify
Runs gtest_throw_on_failure_test_ and verifies that it does (or does not) exit with a non-zero code. Args: env_var_value: value of t
gtest/test/gtest_throw_on_failure_test.py:83
↓ 9 callers
Method
RunAndVerifyAllowingDisabled
Checks that the binary runs correct set of tests for the given filter. Runs gtest_filter_unittest_ with the given filter, and enables disable
gtest/test/gtest_filter_unittest.py:325
↓ 9 callers
Method
elapsed_time
Gets the elapsed time, in milliseconds.
gtest/src/gtest.cc:3719
↓ 9 callers
Method
elapsed_time
Gets the elapsed time, in milliseconds.
gtest/fused-src/gtest/gtest-all.cc:5203
← previous
next →
101–200 of 3,349, ranked by callers