在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):IBMDeveloperUK/Machine-Learning-with-Minishift开源软件地址(OpenSource Url):https://github.com/IBMDeveloperUK/Machine-Learning-with-Minishift开源编程语言(OpenSource Language):HTML 83.6%开源软件介绍(OpenSource Introduction):Training and Deploying Machine Learning Models with ContainersMachine learning dependencies are a hassle...Between ensuring that the right version Python/Pip are installed on your system, and that it doesn't conflict with other Python/Pip versions on your system AND that when you deploy your model to the cloud that the versions of the dependencies you've used in your projects are still compatible with the version on your cloud-based system, it's a wonder that we ever get any time to focus on building and training our neural networks. Fortunately, there's a way to ensure that all of this is a never a problem again - Containers! (specifically, Minishift ) With containers, we can create a clean, virtual environment to setup and train our neural networks in and then deploy them at scale with the exact same same environment. No more dependency hell! "But... won't that be slower?"As with everything in life, there are caveats to this approach. You are training your network on a virtualised system, so you're not going to get the full, raw power of your machine being utilised in the training process. Even with small networks training can take quite some time; even longer inside a virtual environment. However, if you're a machine learning focussed developer with myriad networks to iterate and train, managing all of those dependencies can take hours to configure and there's no guarantee that, if there isn't a problem on your system, there won't be when it's deployed to the production environment. Although this approach will take longer to train, the time savings in reducing the complexity of your setup should work to offset that, and when you complete this workshop, you'll be able to deploy your model to a super-scalable OpenShift Cluster (if you so wish) where you can scale to meet the needs of your users in next to no time at all. "Can't I just use a Virtual Environment instead?"Absolutely, if that works for you, go for it, but depending on the virtual environment you're using, it can be equally as awkward to prepare your project as managing the dependencies manually (in fact, I had the idea for this workshop after spending 6 hours fighting with my local environment). There's also guarantee that the environment you deploy your application to will have a matching configuration without some pre-emptive tweaking. "OK... I'm interested..."Cracking, then let's get started! In this workshop you will learn...
By the end, you'll end up with a natty web app that will tell you what characters you're drawing, that'll look like this: Before We Start...It's probably best that you install Minishift before we start diving into neural networking goodness. Mofe Salami has put together a fantastic workshop that walks you through the installation and basic setup of Minishift. If you pop on over there and follow just the setup steps of the workshop, then head back here, we'll be good to crack on. You Will Need:
Recognising Handwritten Digits with Keras + the MNIST DatasetTraining neural networks (NNs) to classify handwritten digits has become something of a "Hello, World" for developers looking to start tinkering with neural networks. The reasons for this are myriad, but three stand out:
Starting Your ProjectThe code in this repo is a scaffold for the neural network and app that you'll end up with if you follow this workshop to the end. So we can get the full benefit of Minishift's ability to pull code from a centralised repository and deploy it, you'll need to fork this repo to create your own version of it to work from. You can do that with the following steps
This will create a copy of this repository that you'll be able to make changes to, and deploy from.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论