INCOMPLETE
- Added support for streaming predictions.
- Added
fxn.predictions.ready
to check whether a predictor has been preloaded. - Added
verbose
parameter infxn.predictions.create
method to print prediction progress. - Added
--quiet
option infxn predict
CLI action to suppress verbose logging. - Fixed prediction errors when making passing in
str
,list
, ordict
arguments. - Fixed invalid data type error when prediction returns a greyscale image.
- Fixed prediction error in CLI when passing file path as prediction input value.
- Refactored
Acceleration.Default
enumeration member toAcceleration.Auto
. - Removed
Profile
type. UseUser
type instead. - Updated to Function C 0.0.31.
- Fixed errors when
Function
client is created for the first time on a new device. - Updated to Function C 0.0.29.
- Fixed errors when
Function
client is created on Windows.
- Function now supports Linux, across
x86_64
andarm64
architectures.
- Added
fxn --explore
CLI action to explore predictions on fxn.ai.
- Added
Acceleration.Default
enumeration constant. - Added
Acceleration.GPU
enumeration constant for running predictions on the GPU. - Added
Acceleration.NPU
enumeration constant forn running predictions on the neural processor. - Fixed crash when using
PIL.Image
values returned by edge predictors. - Updated to Function C 0.0.26.
- Removed
Value
type. - Removed
PredictorType
enumeration. - Removed
fxn.predictors.create
method for creating predictors. Apply for early access to the new experience. - Removed
fxn.predictions.to_object
method. - Removed
fxn.predictions.to_value
method. - Removed
Predictor.type
field. - Removed
Predictor.acceleration
field. - Removed
Prediction.type
field. - Removed
Acceleration.A40
enumeration constant. - Removed
Acceleration.A100
enumeration constant. - Removed
fxn create
CLI function. - Removed
fxn delete
CLI function. - Removed
fxn list
CLI function. - Removed
fxn search
CLI function. - Removed
fxn retrieve
CLI function. - Removed
fxn archive
CLI function. - Removed
fxn env
CLI function group. - Removed
--raw-outputs
option fromfxn predict
CLI function. - Function now requires Python 3.10+.
- Updated to Function C 0.0.18.
- Fixed
fxn
import error caused byfxn.predictions.stream
function.
- Fixed error in
fxn.predictors.retrieve
function.
- Added missing native libraries.
- Added experimental support for making on-device predictions.
- Added
PredictionResource.name
field for handling prediction resources with required file names.
- Fixed data type inference when making predictions.
- Minor fixes and improvements.
- Added
fxn create --cloud
CLI shorthand flag for setting the predictor type toPredictorType.Cloud
. - Added
fxn create --edge
CLI shorthand flag for setting the predictor type toPredictorType.Edge
. - Removed
AccessMode.Protected
access mode. UseAccessMode.Public
orAccessMode.Private
instead. - Removed
fxn.types.tag.parse_tag
function. UseTag.from_str
class method instead. - Removed
fxn.types.tag.serialize_tag
function. Usestr(Tag)
instead.
- Added support for streaming when making predictions with Function CLI.
- Added
PredictionResource.type
field for inspecting the type of a prediction resource. - Fixed pydantic forward reference errors when constructing
Signature
andPredictor
instances. - Fixed
model_dump
error when making predictions in Google Colab due to outdatedpydantic
dependency. - Refactored
fxn.predictions.create
method to accept aninputs
dictionary instead of relying on keyword arguments.
- Added support for serializing
BytesIO
instances infxn.predictions.to_value
method. - Refactored
fxn.predictions.to_value
method toto_object
for clarity. - Refactored
fxn.predictions.from_value
method toto_value
for clarity. - Updated
fxn.predictions.to_object
method to always use aliased field names when serializing Pydantic types.
- Fixed JSON serialization errors when using the CLI to perform some operations.
- Added
Function
client class to replace functions on individual API types. - Refactored
Value.from_value
method tofxn.predictions.from_value
. - Refactored
Value.to_value
method tofxn.predictions.to_value
. - Changed
Parameter.default_value
field type toValue
. - Removed
CloudPrediction
class. UsePrediction
class instead. - Removed
EdgePrediction
class. UsePrediction
class instead.
- Added
AccessMode.Protected
enumeration member for working with protected predictors. - Added
pydantic
as an explicit dependency.
- Added
Prediction.stream
method for creating streaming predictions.
- Fixed
Value.from_value
method raising exception when serializing a list of Pydantic models.
- Added support for serializing Pydantic models in
Value.from_value
method.
- Added
Parameter.schema
field for inspecting the JSON schema fordict
andlist
parameters. - Fixed
UnboundLocalError
when callingValue.from_value
method with unsupported value type.
- Switched to more ergonomic loading indicator in CLI.
- Refactored
Predictor.readme
field tocard
.
- Add loading indicator when making predictions in CLI.
- Fixed
Predictor.search
method raising error.
- Added
Dtype.null
constant for working withNone
prediction values.
- Refactored
Feature
class toValue
for improved clarity. - Refactored
UploadType.Feature
enumeration member toUploadType.Value
.
- Added
Predictor.readme
field for inspecting the readme of a predictor notebook.
- Added
EnumerationMember
class for working with parameters that are enumeration values. - Added
Parameter.enumeration
field for inspecting parameters which hold enumeration values. - Added
Parameter.default_value
field for inspecting the default value of a predictor parameter. - Renamed
Dtype._3d
data type tomodel
. - Removed
Parameter.string_default
field. UseParameter.default_value
field instead. - Removed
Parameter.int_default
field. UseParameter.default_value
field instead. - Removed
Parameter.float_default
field. UseParameter.default_value
field instead. - Removed
Parameter.bool_default
field. UseParameter.default_value
field instead.
- Added
Feature.from_value
class method for creatingFeature
instances from plain Python values. - Added
Feature.to_value
method for converting aFeature
instance to a plain Python value. - Added
Predictor.list
class method for listing a user's predictors. - Added
fxn list
CLI command for listing a user's predictors. - Removed
features
argument inPrediction.create
method. Useinputs
kwargs instead. - Removed
FeatureInput
class.
- Added
EnvironmentVariable
class for managing predictor environment variables. - Added
fxn env
CLI command for managing predictor environment variables. - Added Function magics to customize how predictors are provisioned. Use
%load_ext fxn.magic
in your predictor notebook. - Fixed
Prediction.create
raising exception when the prediction resulted in an error. - Moved
fxn predictors
CLI commands to top-level. You can now use commands likefxn create
directly.
- Fixed
fxn predictors create
CLI command raising authentication error.
- Fixed
fxn predictors create
CLI command raising error.
- Fixed
fxn predictors create
CLI command raising error.
- Added
Prediction
class for making predictions. - Added
fxn predict
CLI command for makong predictions. - Updated
Predictor.create
methodtype
argument to be optional. Cloud predictors are now the default.
- Added
Predictor.create
class method for creating predictors. - Added
fxn predictors create
CLI command for creating predictors. - Fixed
User.retrieve
method raising exception when retrieving current user. - Fixed
fxn auth logout
CLI command erroring when user was already logged out.
- Added
Signature
type for inspecting predictor signatures. - Added
Parameter
type for inspecting predictor signature parameters. - Added
Acceleration
enumeration for specifying predictor acceleration. - Added
PredictorType
enumeration for specifying predictor type.
- Added Function API types and services.
- Added command line interface. Run
fxn
in your terminal.
- First pre-release.