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
↓ 6 callers
Method
GetLoss
Return the calculated loss value
src/loss/loss.h:117
↓ 6 callers
Method
GetMiniBatch
Get a mini-batch of data from curremt data matrix. This method will be used for distributed computation. Return the count of sample for each function
src/data/data_structure.h:317
↓ 6 callers
Method
GetNextPrime
gtest/samples/sample8_unittest.cc:69
↓ 6 callers
Function
GetThreadCount
Returns the number of threads running in the process, or 0 to indicate that we cannot detect it.
gtest/src/gtest-port.cc:89
↓ 6 callers
Method
Initialize
Invoke this function before we use this class.
src/score/score_function.h:54
↓ 6 callers
Function
InvSqrt
------------------------------------------------------------------------------ 1 / sqrt() Magic function !! ------------------------------------------
src/base/math.h:169
↓ 6 callers
Function
IsInSet
Returns true iff ch appears anywhere in str (excluding the terminating '\0' character).
gtest/fused-src/gtest/gtest-all.cc:8413
↓ 6 callers
Function
IsPathSeparator
Returns whether the given character is a valid path separator.
gtest/src/gtest-filepath.cc:92
↓ 6 callers
Function
IsPathSeparator
Returns whether the given character is a valid path separator.
gtest/fused-src/gtest/gtest-all.cc:7926
↓ 6 callers
Function
ParseStringFlag
Parses a string for a string 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:4749
↓ 6 callers
Function
ParseStringFlag
Parses a string for a string flag, in the form of "--flag=value". On success, stores the value of the flag in *value, and returns true. On failure,
gtest/fused-src/gtest/gtest-all.cc:6233
↓ 6 callers
Function
PrintValue
gtest/test/gtest-param-test_test.cc:82
↓ 6 callers
Function
ReadVectorFromFile
src/base/file_util.h:283
↓ 6 callers
Method
Reset
gtest/src/gtest-internal-inl.h:981
↓ 6 callers
Method
Reset
gtest/fused-src/gtest/gtest-all.cc:1382
↓ 6 callers
Method
Samples
Smaple data from memory buffer.
src/reader/reader.cc:255
↓ 6 callers
Function
SetEnvVar
Sets the env variable to 'value'; unsets it when 'value' is None.
gtest/test/gtest_filter_unittest.py:169
↓ 6 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/fused-src/gtest/gtest-all.cc:6147
↓ 6 callers
Method
StartWork
Start training or inference
src/solver/solver.cc:518
↓ 6 callers
Method
TestHelpFlag
Verifies correct behavior when help flag is specified. The right message must be printed and the tests must skipped when the given flag is sp
gtest/test/gtest_help_test.py:101
↓ 6 callers
Method
VerifyRegisteredTestNames
Verifies that registered_tests match the test names in defined_test_names_; returns registered_tests if successful, or aborts the program otherwise.
gtest/src/gtest-typed-test.cc:51
↓ 6 callers
Method
WaitForNotification
Blocks until the controller thread notifies. Must be called from a test thread.
gtest/fused-src/gtest/gtest.h:2328
↓ 6 callers
Function
WriteVectorToFile
src/base/file_util.h:270
↓ 6 callers
Function
XLearnSetInt
Set int param
src/c_api/c_api.cc:381
↓ 6 callers
Method
failed_test_count
Gets the number of failed tests.
gtest/fused-src/gtest/gtest-all.cc:2218
↓ 6 callers
Method
index
gtest/fused-src/gtest/gtest.h:8407
↓ 6 callers
Method
set
gtest/fused-src/gtest/gtest.h:2599
↓ 6 callers
Method
what
gtest/test/gtest-death-test_ex_test.cc:63
↓ 5 callers
Method
AbortCalls
gtest/test/gtest-death-test_test.cc:831
↓ 5 callers
Method
AssumeRoleCalls
Accessors.
gtest/test/gtest-death-test_test.cc:827
↓ 5 callers
Function
CreateScore
src/score/score_function_test.cc:27
↓ 5 callers
Function
DieWithMessage
gtest/test/gtest-death-test_test.cc:109
↓ 5 callers
Function
Eof
Returns the special cursor to denote the end-of-file.
gtest/scripts/pump.py:132
↓ 5 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/fused-src/gtest/gtest-all.cc:2484
↓ 5 callers
Method
Evalute
------------------------------------------------------------------------------ Calculate loss in multi-thread: master_thread / | \ //
src/loss/squared_loss.cc:53
↓ 5 callers
Function
FormatCompilerIndependentFileLocation
Formats a file location for compiler-independent XML output. Although this function is not platform dependent, we put it next to FormatFileLocation in
gtest/src/gtest-port.cc:474
↓ 5 callers
Function
FormatDeathTestOutput
Returns an indented copy of stderr output for a death test. This makes distinguishing death test output lines from regular log lines much easier.
gtest/src/gtest-death-test.cc:493
↓ 5 callers
Function
FormatDeathTestOutput
Returns an indented copy of stderr output for a death test. This makes distinguishing death test output lines from regular log lines much easier.
gtest/fused-src/gtest/gtest-all.cc:6987
↓ 5 callers
Function
GetCapturedStdout
Stops capturing stdout and returns the captured string.
gtest/src/gtest-port.cc:664
↓ 5 callers
Function
GetFileSize
Return the size (byte) of a target file.
src/base/file_util.h:156
↓ 5 callers
Function
GetLastErrnoDescription
Returns the message describing the last system error in errno.
gtest/fused-src/gtest/gtest-all.cc:6798
↓ 5 callers
Function
GetNextRandomSeed
Returns the first valid random seed after 'seed'. The behavior is undefined if 'seed' is invalid. The seed after kMaxRandomSeed is considered to be
gtest/src/gtest-internal-inl.h:151
↓ 5 callers
Method
GetNumParameter
Get the total size of model parameters. 2 = bias + bias_gradient
src/data/model_parameters.h:162
↓ 5 callers
Function
HasFailure
Returns true iff the current test has a (either fatal or non-fatal) failure.
gtest/include/gtest/gtest.h:383
↓ 5 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/fused-src/gtest/gtest-all.cc:5910
↓ 5 callers
Method
IsDirectory
Returns true if FilePath ends with a path separator, which indicates that it is intended to represent a directory. Returns false otherwise. This does
gtest/src/gtest-filepath.cc:295
↓ 5 callers
Function
IsSpace
gtest/fused-src/gtest/gtest.h:2778
↓ 5 callers
Function
ParseToken
(lines, pos, regex, token_type)
gtest/scripts/pump.py:243
↓ 5 callers
Method
PassedCalls
gtest/test/gtest-death-test_test.cc:829
↓ 5 callers
Method
RemoveExtension
Returns a copy of the FilePath with the case-insensitive extension removed. Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns FilePath(
gtest/src/gtest-filepath.cc:119
↓ 5 callers
Function
ResetCounts
Resets the count for each test.
gtest/test/gtest_repeat_test.cc:141
↓ 5 callers
Method
RunAndVerify
Runs gtest_list_tests_unittest_ and verifies that it prints the correct tests. Args: flag_value: value of the --gtest_list_test
gtest/test/gtest_list_tests_unittest.py:129
↓ 5 callers
Function
RunCode
(env, code_node, output)
gtest/scripts/pump.py:702
↓ 5 callers
Method
Serialize
Serialize current model to a disk file
src/data/model_parameters.cc:213
↓ 5 callers
Method
SetBlockSize
Set the size of the block buffer.
src/reader/reader.h:107
↓ 5 callers
Method
SetHash
The hash value is used to identify the difference between two data matrix, and it can be generated by HashFile() method (in file_util.h) and this valu
src/data/data_structure.h:222
↓ 5 callers
Method
SetParameters
Sets the parameters for subsequent calls to Create.
gtest/test/gtest-death-test_test.cc:916
↓ 5 callers
Function
Stat
gtest/fused-src/gtest/gtest.h:2837
↓ 5 callers
Function
StringFromGTestEnv
Reads and returns the string environment variable corresponding to the given flag; if it's not set, returns default_value.
gtest/src/gtest-port.cc:798
↓ 5 callers
Function
StringFromGTestEnv
Reads and returns the string environment variable corresponding to the given flag; if it's not set, returns default_value.
gtest/fused-src/gtest/gtest-all.cc:9008
↓ 5 callers
Method
TestDeleted
gtest/test/gtest-death-test_test.cc:835
↓ 5 callers
Method
WaitCalls
gtest/test/gtest-death-test_test.cc:828
↓ 5 callers
Function
XLearnSetStr
Set string param
src/c_api/c_api.cc:339
↓ 5 callers
Method
get
gtest/include/gtest/internal/gtest-linked_ptr.h:172
↓ 5 callers
Function
listeners
Provides access to the event listener list.
gtest/src/gtest-internal-inl.h:599
↓ 5 callers
Function
listeners
Provides access to the event listener list.
gtest/fused-src/gtest/gtest-all.cc:1000
↓ 5 callers
Method
original_working_dir
Returns the working directory when the first TEST() or TEST_F() was executed.
gtest/fused-src/gtest/gtest-all.cc:5418
↓ 5 callers
Method
repeater
Returns repeater that broadcasts the TestEventListener events to all subscribers.
gtest/src/gtest.cc:3588
↓ 5 callers
Method
successful_test_count
Gets the number of successful tests.
gtest/src/gtest.cc:729
↓ 5 callers
Function
write_data_to_xlearn_format
Write data to xlearn format (libsvm or libffm). Modified from https://github.com/scikit-learn/scikit-learn/blob/a24c8b46/sklearn/datasets/svmligh
python-package/xlearn/_sklearn.py:27
↓ 4 callers
Method
Append
(self, s)
gtest/scripts/pump.py:652
↓ 4 callers
Function
Arity
Returns the English name of the given arity.
gtest/scripts/gen_gtest_pred_impl.py:164
↓ 4 callers
Function
ArrayAwareFind
gtest/fused-src/gtest/gtest.h:7872
↓ 4 callers
Method
AssertSetEqual
Asserts that two sets are equal.
gtest/test/gtest_filter_unittest.py:230
↓ 4 callers
Function
ChangeToRootDir
gtest/test/gtest-death-test_test.cc:364
↓ 4 callers
Function
CheckFFM
src/reader/reader_test.cc:165
↓ 4 callers
Function
CheckLR
src/reader/reader_test.cc:138
↓ 4 callers
Function
CmpHelperEQ
gtest/fused-src/gtest/gtest.h:18851
↓ 4 callers
Function
CmpHelperEQ
gtest/include/gtest/gtest.h:1438
↓ 4 callers
Function
CreateLoss
src/loss/loss_test.cc:202
↓ 4 callers
Function
CreateReader
src/reader/reader_test.cc:370
↓ 4 callers
Method
Deserialize
Deserialize model from a checkpoint file
src/data/model_parameters.cc:299
↓ 4 callers
Function
DieIfLessThan
A binary function that may die.
gtest/test/gtest-death-test_test.cc:185
↓ 4 callers
Method
EvalExp
(self, exp)
gtest/scripts/pump.py:622
↓ 4 callers
Function
Fail
Prints the given failure message and exits the program with non-zero. We use this instead of a Google Test assertion to indicate a failure, as the la
gtest/test/gtest_throw_on_failure_ex_test.cc:45
↓ 4 callers
Function
FailFatally
gtest/test/gtest_unittest.cc:6613
↓ 4 callers
Method
Failed
Returns true iff the test failed.
gtest/fused-src/gtest/gtest-all.cc:3331
↓ 4 callers
Method
Find
Find str in string list. Return true if we can find str in target string list.
src/base/levenshtein_distance.cc:29
↓ 4 callers
Function
FormatCountableNoun
Formats a countable noun. Depending on its quantity, either the singular form or the plural form is used. e.g. FormatCountableNoun(1, "formula", "fo
gtest/src/gtest.cc:2479
↓ 4 callers
Function
FormatCountableNoun
Formats a countable noun. Depending on its quantity, either the singular form or the plural form is used. e.g. FormatCountableNoun(1, "formula", "fo
gtest/fused-src/gtest/gtest-all.cc:3963
↓ 4 callers
Function
FormatForComparisonFailureMessage
gtest/fused-src/gtest/gtest.h:18844
↓ 4 callers
Function
FormatTestCount
Formats the count of tests.
gtest/src/gtest.cc:2487
↓ 4 callers
Function
FormatTestCount
Formats the count of tests.
gtest/fused-src/gtest/gtest-all.cc:3971
↓ 4 callers
Function
GetCommandOutput
Runs a command and returns its output with all file location info stripped off. Args: env_cmd: The shell command. A 2-tuple where element 0
gtest/test/gtest_output_test.py:221
↓ 4 callers
Function
GetElementOr
gtest/fused-src/gtest/gtest-all.cc:703
↓ 4 callers
Method
GetTestInfo
Returns the i-th test among all the tests. i can range from 0 to total_test_count() - 1. If i is not in that range, returns NULL.
gtest/src/gtest.cc:2409
↓ 4 callers
Function
InDeathTestChild
Returns a Boolean value indicating whether the caller is currently executing in the context of the death test child process. Tools such as Valgrind h
gtest/src/gtest-death-test.cc:130
↓ 4 callers
Function
Message
Copy constructor.
gtest/include/gtest/gtest-message.h:96
↓ 4 callers
Function
OneTo
Returns the list [1, 2, 3, ..., n].
gtest/scripts/gen_gtest_pred_impl.py:183
↓ 4 callers
Function
Read
gtest/fused-src/gtest/gtest.h:2890
← previous
next →
301–400 of 3,349, ranked by callers