Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Có thể nhầm giữa việc chia tập huấn luyện và kiểm tra phần ví dụ trang 123 #1

Closed
nvty13 opened this issue Jan 9, 2020 · 1 comment

Comments

@nvty13
Copy link

nvty13 commented Jan 9, 2020

Em chào anh Tiệp,
Em đang đọc quyển Machine Learning Cơ bản của anh, ở trang 123 anh có viết:

Tiếp theo, 130 mẫu dữ liệu được lấy ra ngẫu nhiên tạo thành tập huấn luyện, 20 mẫu còn lại được dùng để kiểm tra.

print(’Labels:’, np.unique(iris_y))
# split train and test
np.random.seed(7)
X_train, X_test, y_train, y_test = train_test_split(iris_X, iris_y, test_size=130)

print(’Training size:’, X_train.shape[0], ’, test size:’, X_test.shape[0])

Nhưng khi in ra lại ngược lại, em không biết đây có phải là do anh viết nhầm hay do em hiểu sai

Labels: [0 1 2]
Training size: 20 , test size: 130

Cám ơn anh rất nhiều.

@tiepvupsu
Copy link
Owner

Cảm ơn em. Có vẻ là anh đã viết ngược. Đúng phải là 130 mẫu kiểm tra, 20 mẫu huấn luyện. Anh sẽ sửa lỗi này vào cuối tuần.

@nvty13 nvty13 changed the title Có thể nhầm giữa tập huấn luyện và kiểm tra Có thể nhầm giữa tập huấn luyện và kiểm tra phần ví dụ trang 123 Jan 9, 2020
@nvty13 nvty13 changed the title Có thể nhầm giữa tập huấn luyện và kiểm tra phần ví dụ trang 123 Có thể nhầm giữa việc chia tập huấn luyện và kiểm tra phần ví dụ trang 123 Jan 9, 2020
tiepvupsu added a commit that referenced this issue Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants