MCPcopy Create free account
hub / github.com/codewithzichao/Machine_Learning_Code / model

Function model

MaxEnt/logistic_regression_python.py:153–181  ·  view source on GitHub ↗

将上述定义的函数结合起来,就是整个LR模型的执行过程 :param train_data: 训练数据集 :param train_label: 训练数据集的标签 :param test_data: 测试数据集 :param test_label: 测试数据集的标签 :param iterations: 迭代次数(epoch) :param learning_rate: 学习率 :return: 在测试数据集上的准确率

(train_data, train_label, test_data, test_label, iterations, learning_rate)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 3

initialize_paramsFunction · 0.85
optimizationFunction · 0.85
predictFunction · 0.70

Tested by

no test coverage detected