机器学习实验课内容实现逻辑回归和神经网络 % 读入数据 X = load('logistic_x.txt'); Y = load('logistic_y.txt'); X = [ones(size(X, 1), 1) X]; % 计算 theta theta = log_regression(X ,Y); % 绘制图像 figure; hold on; plot(X(Y < 0, 2), X(Y < 0, 3), 'rx', 'linewidth', 2); plot(X(Y > 0, 2), X(Y > 0, 3), 'go', 'linewidth', 2); x1 = min(X(:,2