Comments (4)
我的demo不太严谨,加载完数据后,先打乱一下:
import random
index = [i for i in range(len(data))]
random.shuffle(index)
data = data[index]
label = label[index]
你试试这样改后,结果怎么样?
from machinelearning.
多谢,试试在反馈
from machinelearning.
解决了,多谢!是不是因为存储下来data中的数据按照类别排序的?还是别的原因?
from machinelearning.
有可能是这原因,我读入数据的时候,样本就是乱的,可能你的机子就是按类别顺序读入。
from machinelearning.
Related Issues (20)
- FaceRecognition有没有TensorFlow版本? HOT 1
- Traceback (most recent call last): File "C:\Users\liangxin\keras_usage\c data, label = load_data() File "C:\Users\liangxin\keras_usage\d imgs = os.listdir("./mnist") WindowsError: [Error 3] : './mnist/*.*' HOT 1
- 依赖tensorflow模块 windows下只有python3.5 64位支持 HOT 2
- thank you HOT 1
- help.... HOT 3
- 关于SVM的SMO算法的一些疑惑
- 您好,读了《朴素贝叶斯理论推导与三种常见模型》,希望跟您要一份pdf可以吗? HOT 1
- decision Tree 有bug 啊
- 初涉机器学习小白,能否推荐一些机器学习学习路线,相关书籍,以及工具,非常感谢, 邮箱[email protected]
- from theano.tensor.signal import downsample 这个downsample是不是移动了
- 请问 import cPickle 这个包是哪个module下的? HOT 1
- 大佬,急急急!
- Kaggle
- Machine
- Dd
- Is there a main function (API) that can be used directly...?
- GitHub repo Recommend - L0CV - *Computer Vision in Action*
- 1 HOT 1
- Sales Forecasting
- Want to dive into it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from machinelearning.