This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #400 from flojoy-ai/dallas-update-docs-sept21
docs autogen and 33500B
- Loading branch information
Showing
136 changed files
with
31,409 additions
and
3,578 deletions.
There are no files selected for viewing
31 changes: 20 additions & 11 deletions
31
docs/nodes/AI_ML/IMAGE_CLASSIFICATION/HUGGING_FACE_PIPELINE/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
Hugging Face Pipeline for Image Classification. | ||
The HUGGING_FACE_PIPELINE node uses a classification pipeline to process and classify an image. | ||
|
||
For more information about Vision Transformers, | ||
see: https://huggingface.co/google/vit-base-patch16-224 | ||
|
||
For a complete list of models, see: | ||
https://huggingface.co/models?pipeline_tag=image-classification | ||
|
||
For examples of how revision parameters (such as 'main') is used, | ||
see: https://huggingface.co/google/vit-base-patch16-224/commits/main | ||
|
||
Parameters | ||
---------- | ||
default: Image | ||
The input image to be classified. The image must be a PIL.Image object wrapped in a flojoy Image object. | ||
model: str | ||
default : Image | ||
The input image to be classified. | ||
The image must be a PIL.Image object, wrapped in a Flojoy Image object. | ||
model : str | ||
The model to be used for classification. | ||
If not specified, Vision Transformers (i.e. `google/vit-base-patch16-224`) are used. | ||
For more information about Vision Transformers, see: https://huggingface.co/google/vit-base-patch16-224 | ||
For a complete list of models see: https://huggingface.co/models?pipeline_tag=image-classification | ||
revision: str | ||
If not specified, Vision Transformers (i.e. 'google/vit-base-patch16-224') are used. | ||
revision : str | ||
The revision of the model to be used for classification. | ||
If not specified, main is `used`. For instance see: https://huggingface.co/google/vit-base-patch16-224/commits/main | ||
If not specified, 'main' is used. | ||
|
||
Returns | ||
------- | ||
DataFrame: | ||
A DataFrame containing as columns the `label` classification label and `score`, its confidence score. | ||
All scores are between 0 and 1 and sum to 1. | ||
A DataFrame containing the columns 'label' (as classification label) | ||
and 'score' (as the confidence score). | ||
All scores are between 0 and 1, and sum to 1. |
16 changes: 7 additions & 9 deletions
16
docs/nodes/AI_ML/NLP/COUNT_VECTORIZER/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
The COUNT_VECTORIZER node receives a collection (matrix, vector or dataframe) of text documents and converts it to a matrix of token counts. | ||
|
||
The COUNT_VECTORIZER node receives a collection (matrix, vector or dataframe) of | ||
text documents to a matrix of token counts. | ||
|
||
Returns | ||
------- | ||
tokens: DataFrame | ||
holds all the unique tokens observed from the input. | ||
word_count_vector: Vector | ||
contains the occurences of these tokens from each sentence. | ||
Returns | ||
------- | ||
tokens: DataFrame | ||
Holds all the unique tokens observed from the input. | ||
word_count_vector: Vector | ||
Contains the occurences of these tokens from each sentence. |
66 changes: 33 additions & 33 deletions
66
docs/nodes/AI_ML/PREDICT_TIME_SERIES/PROPHET_PREDICT/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
The PROPHET_PREDICT node runs a Prophet model on the incoming dataframe. | ||
|
||
The PROPHET_PREDICT node rains a Prophet model on the incoming dataframe. | ||
The DataContainer input type must be a dataframe, and the first column (or index) of the dataframe must be of a datetime type. | ||
|
||
The DataContainer input type must be a dataframe, and the first column (or index) of dataframe must be of a datetime type. | ||
This node always returns a DataContainer of a dataframe type. It will also always return an 'extra' field with a key 'prophet' of which the value is the JSONified Prophet model. | ||
This model can be loaded as follows: | ||
|
||
This node always returns a DataContainer of a dataframe type. It will also always return an "extra" field with a key "prophet" of which the value is the JSONified Prophet model. | ||
This model can be loaded as follows: | ||
```python | ||
from prophet.serialize import model_from_json | ||
```python | ||
from prophet.serialize import model_from_json | ||
|
||
model = model_from_json(dc_inputs.extra["prophet"]) | ||
``` | ||
model = model_from_json(dc_inputs.extra["prophet"]) | ||
``` | ||
|
||
Parameters | ||
---------- | ||
run_forecast : bool | ||
If True (default case), the dataframe of the returning DataContainer | ||
("m" parameter of the DataContainer) will be the forecasted dataframe. | ||
It will also have an "extra" field with the key "original", which is | ||
the original dataframe passed in. | ||
Parameters | ||
---------- | ||
run_forecast : bool | ||
If True (default case), the dataframe of the returning DataContainer | ||
('m' parameter of the DataContainer) will be the forecasted dataframe. | ||
It will also have an 'extra' field with the key 'original', which is | ||
the original dataframe passed in. | ||
|
||
If False, the returning dataframe will be the original data. | ||
If False, the returning dataframe will be the original data. | ||
|
||
This node will also always have an "extra" field, run_forecast, which | ||
matches that of the parameters passed in. This is for future nodes | ||
to know if a forecast has already been run. | ||
This node will also always have an 'extra' field, run_forecast, which | ||
matches that of the parameters passed in. This is for future nodes | ||
to know if a forecast has already been run. | ||
|
||
Default = True | ||
Default = True | ||
|
||
periods : int | ||
The number of periods to predict out. Only used if run_forecast is True. | ||
Default = 365 | ||
periods : int | ||
The number of periods to predict out. Only used if run_forecast is True. | ||
Default = 365 | ||
|
||
Returns | ||
------- | ||
DataFrame | ||
With parameter as df. | ||
Indicates either the original df passed in, or the forecasted df | ||
(depending on if run_forecast is True). | ||
Returns | ||
------- | ||
DataFrame | ||
With parameter as df. | ||
Indicates either the original df passed in, or the forecasted df | ||
(depending on if run_forecast is True). | ||
|
||
DataContainer | ||
With parameter as "extra". | ||
Contains keys run_forecast which correspond to the input parameter, | ||
and potentially "original" in the event that run_forecast is True. | ||
DataContainer | ||
With parameter as 'extra'. | ||
Contains keys run_forecast which correspond to the input parameter, | ||
and potentially 'original' in the event that run_forecast is True. |
17 changes: 8 additions & 9 deletions
17
docs/nodes/AI_ML/REGRESSION/LEAST_SQUARES/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
The LEAST_SQUARE node computes the coefficients that minimize the distance between the inputs 'Matrix' or 'OrderedPair' class and the regression. | ||
|
||
The LEAST_SQUARE node computes the coefficients that minimizes the distance between the inputs 'Matrix' or 'OrderedPair' class and the regression. | ||
|
||
Returns | ||
------- | ||
OrderedPair | ||
x: input matrix (data points) | ||
y: fitted line computed with returned regression weights | ||
Matrix | ||
m : fitted matrix computed with returned regression weights | ||
Returns | ||
------- | ||
OrderedPair | ||
x: input matrix (data points) | ||
y: fitted line computed with returned regression weights | ||
Matrix | ||
m: fitted matrix computed with returned regression weights |
11 changes: 5 additions & 6 deletions
11
docs/nodes/AI_ML/SEGMENTATION/DEEPLAB_V3/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
|
||
The DEEPLAB_V3 node returns a segmentation mask from an input image in a dataframe. | ||
|
||
The input image is expected to be a DataContainer of an "image" type. | ||
The input image is expected to be a DataContainer of an 'image' type. | ||
|
||
The output is a DataContainer of an "image" type with the same dimensions as the input image, but with the red, green, and blue channels replaced with the segmentation mask. | ||
The output is a DataContainer of an 'image' type with the same dimensions as the input image, but with the red, green, and blue channels replaced with the segmentation mask. | ||
|
||
Returns | ||
------- | ||
Image | ||
Returns | ||
------- | ||
Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
docs/nodes/GENERATORS/SAMPLE_DATASETS/R_DATASET/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
The R_DATASET node retrieves a pandas DataFrame from 'rdatasets', using the provided dataset_key parameter, and returns it wrapped in a DataContainer. | ||
|
||
The R_DATASET node retrieves a pandas DataFrame from rdatasets using the provided dataset_key parameter and returns it wrapped in a DataContainer. | ||
Parameters | ||
---------- | ||
dataset_key : str | ||
|
||
Parameters | ||
---------- | ||
dataset_key : str | ||
|
||
Returns | ||
------- | ||
DataFrame | ||
A DataContainer object containing the retrieved pandas DataFrame. | ||
Returns | ||
------- | ||
DataFrame | ||
A DataContainer object containing the retrieved pandas DataFrame. |
74 changes: 39 additions & 35 deletions
74
docs/nodes/GENERATORS/SAMPLE_DATASETS/TEXT_DATASET/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
The TEXT_DATASET node loads the 20 newsgroups dataset from scikit-learn. | ||
The data is returned as a dataframe with one column containing the text | ||
and the other containing the category. | ||
|
||
Parameters | ||
---------- | ||
subset: "train" | "test" | "all", default="train" | ||
Select the dataset to load: "train" for the training set, "test" for the test set, "all" for both. | ||
categories: list of str, optional | ||
Select the categories to load. By default, all categories are loaded. | ||
The list of all categories is: | ||
'alt.atheism', | ||
'comp.graphics', | ||
'comp.os.ms-windows.misc', | ||
'comp.sys.ibm.pc.hardware', | ||
'comp.sys.mac.hardware', | ||
'comp.windows.x', | ||
'misc.forsale', | ||
'rec.autos', | ||
'rec.motorcycles', | ||
'rec.sport.baseball', | ||
'rec.sport.hockey', | ||
'sci.crypt', | ||
'sci.electronics', | ||
'sci.med', | ||
'sci.space', | ||
'soc.religion.christian', | ||
'talk.politics.guns', | ||
'talk.politics.mideast', | ||
'talk.politics.misc', | ||
'talk.religion.misc' | ||
remove_headers: boolean, default=false | ||
Remove the headers from the data. | ||
remove_footers: boolean, default=false | ||
Remove the footers from the data. | ||
remove_quotes: boolean, default=false | ||
Remove the quotes from the data. | ||
The data is returned as a dataframe with one column containing the text and the other containing the category. | ||
|
||
Parameters | ||
---------- | ||
subset : "train" | "test" | "all", default="train" | ||
Select the dataset to load: "train" for the training set, "test" for the test set, "all" for both. | ||
categories : list of str, optional | ||
Select the categories to load. By default, all categories are loaded. | ||
The list of all categories is: | ||
'alt.atheism', | ||
'comp.graphics', | ||
'comp.os.ms-windows.misc', | ||
'comp.sys.ibm.pc.hardware', | ||
'comp.sys.mac.hardware', | ||
'comp.windows.x', | ||
'misc.forsale', | ||
'rec.autos', | ||
'rec.motorcycles', | ||
'rec.sport.baseball', | ||
'rec.sport.hockey', | ||
'sci.crypt', | ||
'sci.electronics', | ||
'sci.med', | ||
'sci.space', | ||
'soc.religion.christian', | ||
'talk.politics.guns', | ||
'talk.politics.mideast', | ||
'talk.politics.misc', | ||
'talk.religion.misc' | ||
remove_headers : boolean, default=false | ||
Remove the headers from the data. | ||
remove_footers : boolean, default=false | ||
Remove the footers from the data. | ||
remove_quotes : boolean, default=false | ||
Remove the quotes from the data. | ||
|
||
Returns | ||
------- | ||
DataFrame |
2 changes: 1 addition & 1 deletion
2
docs/nodes/GENERATORS/SAMPLE_IMAGES/SKIMAGE/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 22 additions & 23 deletions
45
docs/nodes/GENERATORS/SIMULATIONS/BASIC_OSCILLATOR/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
|
||
The BASIC_OSCILLATOR node is a combination of the LINSPACE and SINE nodes. | ||
|
||
It offers a more straightforward way to generate signals, with sample rate and the time in seconds as parameters, along with all the parameters in the SINE node. | ||
It offers a more straightforward way to generate signals, with sample rate and the time in seconds as parameters, along with all the parameters in the SINE node. | ||
|
||
Parameters | ||
---------- | ||
sample_rate : float | ||
How many samples are taken in a second. | ||
time : float | ||
The total amount of time of the signal. | ||
waveform : select | ||
The waveform type of the wave. | ||
amplitude : float | ||
The amplitude of the wave. | ||
frequency : float | ||
The wave frequency in radians/2pi. | ||
offset : float | ||
The y axis offset of the function. | ||
phase : float | ||
The x axis offset of the function. | ||
Parameters | ||
---------- | ||
sample_rate : float | ||
The number of samples that are taken in a second. | ||
time : float | ||
The total amount of time of the signal. | ||
waveform : select | ||
The waveform type of the wave. | ||
amplitude : float | ||
The amplitude of the wave. | ||
frequency : float | ||
The wave frequency in radians/2pi. | ||
offset : float | ||
The y axis offset of the function. | ||
phase : float | ||
The x axis offset of the function. | ||
|
||
Returns | ||
------- | ||
OrderedPair | ||
x: time domain | ||
y: generated signal | ||
Returns | ||
------- | ||
OrderedPair | ||
x: time domain | ||
y: generated signal |
47 changes: 22 additions & 25 deletions
47
docs/nodes/GENERATORS/SIMULATIONS/CONSTANT/a1-[autogen]/docstring.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
|
||
The CONSTANT node generates a single x-y vector of numeric (floating point) constants. | ||
|
||
Inputs | ||
------ | ||
default : OrderedPair|Vector | ||
Optional input that defines the size of the output. | ||
|
||
Parameters | ||
---------- | ||
dc_type : select | ||
The type of DataContainer to return. | ||
constant : float | ||
The value of the y axis output. | ||
step : int | ||
The size of the y and x axes. | ||
Inputs | ||
------ | ||
default : OrderedPair|Vector | ||
Optional input that defines the size of the output. | ||
|
||
Returns | ||
------- | ||
OrderedPair | ||
Parameters | ||
---------- | ||
dc_type : select | ||
The type of DataContainer to return. | ||
constant : float | ||
The value of the y axis output. | ||
step : int | ||
The size of the y and x axes. | ||
|
||
OrderedPair|Vector|Scalar | ||
OrderedPair if selected | ||
x: the x axis generated with size 'step' | ||
y: the resulting constant with size 'step' | ||
Vector if selected | ||
v: the resulting constant with size 'step' | ||
Scalar if selected | ||
c: the resulting constant | ||
Returns | ||
------- | ||
OrderedPair|Vector|Scalar | ||
OrderedPair if selected | ||
x: the x axis generated with size 'step' | ||
y: the resulting constant with size 'step' | ||
Vector if selected | ||
v: the resulting constant with size 'step' | ||
Scalar if selected | ||
c: the resulting constant |
Oops, something went wrong.