fastai conv_learner question import error problem - machine-learning

#from fastai.conv_learner import *
#from fastai.dataset import *
I'm having a problem with importing
the version I use for fastai is
Successfully installed fastai-1.0.60 fastprogress-0.2.2

Does this help? https://www.reddit.com/r/learnmachinelearning/comments/a3jjvg/ive_started_working_with_fastai_but_i_cant_import/
Or maybe this? https://github.com/fastai/fastai/issues/1134

Related

Cannot import name 'FillMissingValues from 'awsglueml.transforms'

I'm using for the first time awsglueml package to use the class FillMissingValues. I'm using Glue 3.0 importing the ML package as mentionned by the documentation:
from awsglueml.transforms import FillMissingValues
...
dyf = FillMissingValues.apply(dyf, "demographic", output_column="demographic")
And I got an import error:
from awsglueml.transforms import FillMissingValues
ImportError: cannot import name 'FillMissingValues' from 'awsglueml.transforms' (/opt/amazon/lib/python3.6/site-packages/awsglueml/transforms/__init__.py)
Why does the latest Glue version is not up-to-date with the latest documentation? FillMissingValues should be in the awsglueml/transform package.

Can't access kivy.garden.matplotlib

Everything in installed and has the latest version but when I'm trying to import FigureCanvasKivyAgg :
from kivy.garden.matplotlib import FigureCanvasKivyAgg
it says under matplotlib that: "Cannot find reference 'matplotlib' in 'init.py'"
Thanks for the help!

how to install model_evaluation_utils

I'm trying to model evaluate the performance of our deep learning models. And below is my code. However, I still get
No module named 'model_evaluation_utils'
Is there any pip installation or conda that could solve this problem?
from keras.preprocessing.image import load_img, img_to_array, array_to_img
from keras.models import load_model
import model_evaluation_utils as meu # throws error
Implementation of "model_evaluation_utils" can be found in the following github repository:
link
I think it's not a publicly available library, there must be a model_evaluation_utils.py file which is imported in the code and is used.

how to create exe of Python Code using opencv with or without py2exe?

i have some Python Code working properly its some kinda simple thing using opencv.
for example
import cv2
x = cv2.imread('Dog6.jpg')
cv2.imwrite('new2.jpg')
setup.py is
from distutils.core import setup
import py2exe
import cv2
setup(console=['name.py'])
but i am unable to create exe of this code with py2exe.
is there another method to create exe of such program ?
Error is
ImportError:numpy.core.multiarray failed to import
Put the line:
import numpy
Into your script, i.e the first file and try again.

problem while importing Java classes

I need to import the fallowing,But in blackberry there is no predefined imports as i need.
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javacard.framework.SystemException;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.kobjects.base64.Base64;
all these shows error.
When i add jar6 library it does n't show any error but i got packing failed.
I need to import these files.
can any one please post how can i import these files.
Thank u in advance.
BlackBerry uses J2ME which is Java 1.3. You won't be able to use Java 6 classes. Instead you should look at the BlackBerry API. It has classes for encryption but you'll need to rewrite your code to use them.

Resources