~/talk

Teaching PHP new tricks with machine learning

Talkat PHPConf.Asia 2016 · 2016-08-23..08-24· [machine-learning, php]
slides:none on file

Uses the PHP tokenizer to extract comment tokens, converts counts of dollars, semicolons, operators and length into numeric features, trains a small neural net with the fann extension on 47 labeled examples to produce a tiny model file, then scores phpMyAdmin’s 14,000 comments in 68 ms. Initial pass flags ~14% (~2,000) as likely code; simple noise filters cut review set to ~800. Workflow is iterative: add reviewed true/false examples, retrain, and improve false positive rate.

AI-written summary · about

  1. 0:00Introduction to the topic
  2. 2:38Supervised learning concepts
  3. 9:25Neural networks in PHP
  4. 14:11Data preparation and training
  5. 26:33Running and evaluating models
  6. 31:10Analyzing performance results
  7. 36:27Refinement and future tools
  8. 39:30Q&A and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.