How to call python in matlab?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I want to use the SymbolicTransformer function of python GPlearn
Like this sentence~
function_set = ['add', 'sub', 'mul', 'div', 'log', 'sqrt', 'abs', 'neg', 'max', 'min']
gp1 = SymbolicTransformer(generations=10, population_size=1000,
hall_of_fame=100, n_components=10,
function_set=function_set,
parsimony_coefficient=0.0005,
max_samples=0.9, verbose=1,
random_state=0, n_jobs=3)
How to input in matlab?
2 comentarios
Alex Hanes
el 26 de Oct. de 2022
Look at the documentation: Call Python from MATLAB and the related links. There are Examples that show you how to get started.
Respuestas (1)
surya venu
el 18 de Jul. de 2024
Hi,
You can call third-party Python libraries by adding 3-p libraries as suffuix to "py" command.
Here are some example MATLAB codes:
>> py.numpy.array([12 12])
>> py.time.sleep(1)
>> py.tensorflow.constant(3, dtype=py.tensorflow.int32)
>> py.gplearn.genetic.SymbolicRegressor(...)
Hope it helps.
0 comentarios
Ver también
Categorías
Más información sobre Call Python from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!