IoTPy.modules.ML.examples package

Submodules

IoTPy.modules.ML.examples.linear_regression module

IoTPy.modules.ML.examples.linear_regression.source(state)[source]

Returns a list of two random values

Parameters:

state : int

The step

Returns:

list

List of two random values

IoTPy.modules.ML.examples.meetup module

IoTPy.modules.ML.examples.meetup.plot(x, y, model, state)[source]

Plots Meetup RSVPs and centroids

Parameters:

x : numpy.ndarray

The location data to plot

y : numpy.ndarray

No data

model : object

Kmeans model

state : object

The plot state

Returns:

Geomap.Geomap

The current map

IoTPy.modules.ML.examples.meetup.source(state)[source]

Returns the next Meetup RSVP

This function gets the next Meetup RSVP from the Meetup stream and returns the location data.

Parameters:

state : object

The Meetup stream

Returns:

list

A list containing the location data and the state

IoTPy.modules.ML.examples.twitter module

Module contents