Giter Club home page Giter Club logo

pla's Introduction

About how to run:
1) open CMD.

2) cd to the content which py files in.
	cd C:\Users\T5\PycharmProjects\PLA	
	
3) run DataEmit program.
	python DataEmit.py [0,-1,1] 5 4 
	
	if no error occur, mean successful.
	then you can open 'train.txt' to see the result.
	The output file may look like the following:
	-67.9 95.1 1.0
	-86.0 62.3 1.0
	60.0 66.2 1.0
	35.1 28.1 -1.0
	82.5 -59.0 -1.0
	-65.8 91.2 1.0
	-96.8 55.9 1.0
	0.6 -70.3 -1.0
	80.1 -49.6 -1.0
	PS: -1 mean '-', +1 mean '+'.
	
4) run PLA program
	python PLA.py train.txt
	then pop-up a window that display the plot,
	after close the window, the CMD will output the weight vector. eg.[[  -3.  -108.7  135.1]]
	
About environment:
	python version: python 3.6
	IDE: pycharm 2018.3.3
	OS: win10
	packages used: numpy, matplotlib, sys

	
	

pla's People

Contributors

uestctangzijian avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.