Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP, Meet AI

PHP, Meet AI

With new advances in machine learning, advanced integrations with AI platforms are now available to everyone! You can easily build AI into your application without a Ph.D. or advanced knowledge of linear algebra or the algorithms that make machine learning work.

In this talk, we’ll cover some simple integrations with commonly available tools to make your application truly “smart.” No prior experience in machine learning is required, just come prepared to learn, ask questions, and get your hands dirty with state of the art tools.

Eric Mann

October 14, 2024
Tweet

More Decks by Eric Mann

Other Decks in Technology

Transcript

  1. CREATE POPULATION EVALUATE FITNESS MUTATE REPRODUCE Randomly-initialized strings can eventually

    converge to meet a target string over several iterations of a random optimization algorithm over a large set of candidates. Evaluate how close each candidate is to the optimum Evaluate Fitness Initialize a collection of pseudorandom candidates Create Population Create a new candidate for the next generation Reproduce Mutate the new candidate so we can further optimize Mutate Genetic Algorithms
  2. Genetic Algorithms In Review 1 We created a collection of

    entirely random strings, all the same length as our target text. Initialize Population 2 We measured the distance of each string from the target text. Evaluate Fitness 3 We used our “high fitness” members to create a new, somewhat less random child generation Reproduce 4 We mutated some children to introduce randomness and prevent local maxima. Mutate
  3. Genetic Algorithms In Review 1 We created a collection of

    entirely random strings, all the same length as our target text. Initialize Population 2 We measured the distance of each string from the target text. Evaluate Fitness 3 We used our “high fitness” members to create a new, somewhat less random child generation Reproduce 4 We mutated some children to introduce randomness and prevent local maxima. Mutate
  4. The Traveling Salesman Problem Salesman must travel to all cities

    once before returning home. The distance between each city is given and is assumed to be the same in either direction. OBJECTIVE - Minimize the total distance traveled on the trip.
  5. The Traveling Salesman Problem Salesman must travel to all cities

    once before returning home. The distance between each city is given and is assumed to be the same in either direction. OBJECTIVE - Minimize the total distance traveled on the trip.
  6. Ant Colony Optimization Traveling Salesman 1 Drop an “ant” at

    a random city. Random Starting Point 2 The ant visits each city in turn at random, weighted by the attractiveness of each destination. “Attractiveness”-based Route 3 An ant deposits pheromone on each edge it travels, with an amount inversely proportional to the total distance travelled in its route. Calculate Pheromone Trail 4 The total pheromone for the next iteration is part left over from the first and part added to by the ants - repeat all steps until we converge. Evaporate and Repeat
  7. Ant Colony Optimization Traveling Salesman Vehicle Routing Job Ordering “Knapsack

    Problem” Nanoelectronics Design Image Processing Antenna Optimization Network Routing Protein Folding
  8. I'm an avid photographer, and I'm primarily found shooting with

    my DSLR or my instant film camera that I carry around for casual use. While nothing beats my DSLR in power and convenience, there's something magical about my instant film camera. Perhaps it's that you're shooting on actual film, or maybe it's that every shot you take is a unique physical artifact (which is special in today's world of Instagram and Facebook, where photos are a dime a dozen). All I know for sure is that they are incredibly fun to use and peoples' eyes light up when you pull one of these out at a party.
  9. I'm an avid photographer, and I'm primarily found shooting with

    my DSLR or my instant film camera that I carry around for casual use. While nothing beats my DSLR in power and convenience, there's something magical about my instant film camera. Perhaps it's that you're shooting on actual film, or maybe it's that every shot you take is a unique physical artifact (which is special in today's world of Instagram and Facebook, where photos are a dime a dozen). All I know for sure is that they are incredibly fun to use and peoples' eyes light up when you pull one of these out at a party.
  10. Leverage computer vision to provide automatic “alt” text for images.

    Image Descriptions Identify and center cropping and resize operations on the focal point of an image. Smart Crop Automat tagging and grouping images to simplify media management. Image Tagging ClassifAI is Open Source It’s free to use and leverages the free tiers of both IBM Watson and Azure Machine Learning! AWS support is on the horizon, and the plugin is easily extensible if you want to roll your own.