Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

Commonmark migration
Source Link

I think you have to try importing like this:

from tsfresh.feature_extraction.feature_calculators import abs_energy,absolute_sum_of_changes,agg_autocorrelation

And then use this in eval like this:

eval(str(v["calculators"]))

Solution 2

#Solution 2# AlternativelyAlternatively, you can change your data in your DataFrame to be like fc.abs_energy instead of abs_energy and import your module without change:

from tsfresh.feature_extraction import feature_calculators as fc

Caution

#Caution# DoDo not forget to concatenate () to your string to call the desired function. For example you have to call abs_energy function like this:

eval('abs_energy()')

I think you have to try importing like this:

from tsfresh.feature_extraction.feature_calculators import abs_energy,absolute_sum_of_changes,agg_autocorrelation

And then use this in eval like this:

eval(str(v["calculators"]))

#Solution 2# Alternatively, you can change your data in your DataFrame to be like fc.abs_energy instead of abs_energy and import your module without change:

from tsfresh.feature_extraction import feature_calculators as fc

#Caution# Do not forget to concatenate () to your string to call the desired function. For example you have to call abs_energy function like this:

eval('abs_energy()')

I think you have to try importing like this:

from tsfresh.feature_extraction.feature_calculators import abs_energy,absolute_sum_of_changes,agg_autocorrelation

And then use this in eval like this:

eval(str(v["calculators"]))

Solution 2

Alternatively, you can change your data in your DataFrame to be like fc.abs_energy instead of abs_energy and import your module without change:

from tsfresh.feature_extraction import feature_calculators as fc

Caution

Do not forget to concatenate () to your string to call the desired function. For example you have to call abs_energy function like this:

eval('abs_energy()')

added 184 characters in body
Source Link

I think you have to try importing like this:

from tsfresh.feature_extraction.feature_calculators import abs_energy,absolute_sum_of_changes,agg_autocorrelation

And then use this in eval like this:

eval(str(v["calculators"]))

#Solution 2#

Alternatively Alternatively, you can change your data in your DataFrame to be like fc.abs_energy instead of abs_energy and import your module without change:

from tsfresh.feature_extraction import feature_calculators as fc

#Caution# Do not forget to concatenate () to your string to call the desired function. For example you have to call abs_energy function like this:

eval('abs_energy()')

I think you have to try importing like this:

from tsfresh.feature_extraction.feature_calculators import abs_energy,absolute_sum_of_changes,agg_autocorrelation

And then use this in eval like this:

eval(str(v["calculators"]))

#Solution 2#

Alternatively, you can change your data in your DataFrame to be like fc.abs_energy instead of abs_energy and import your module without change:

from tsfresh.feature_extraction import feature_calculators as fc

I think you have to try importing like this:

from tsfresh.feature_extraction.feature_calculators import abs_energy,absolute_sum_of_changes,agg_autocorrelation

And then use this in eval like this:

eval(str(v["calculators"]))

#Solution 2# Alternatively, you can change your data in your DataFrame to be like fc.abs_energy instead of abs_energy and import your module without change:

from tsfresh.feature_extraction import feature_calculators as fc

#Caution# Do not forget to concatenate () to your string to call the desired function. For example you have to call abs_energy function like this:

eval('abs_energy()')

Source Link

I think you have to try importing like this:

from tsfresh.feature_extraction.feature_calculators import abs_energy,absolute_sum_of_changes,agg_autocorrelation

And then use this in eval like this:

eval(str(v["calculators"]))

#Solution 2#

Alternatively, you can change your data in your DataFrame to be like fc.abs_energy instead of abs_energy and import your module without change:

from tsfresh.feature_extraction import feature_calculators as fc

lang-py

AltStyle によって変換されたページ (->オリジナル) /