Giter VIP home page Giter VIP logo

ame's People

Contributors

d909b avatar slingpy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ame's Issues

Error running basic example

Hi, Patrick! Please, can you update this great tool to a more recent Python environment?
I'm getting the following error message when running your basic example.

Traceback (most recent call last):

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 468, in make_tensor_proto
    str_values = [compat.as_bytes(x) for x in proto_values]

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 468, in <listcomp>
    str_values = [compat.as_bytes(x) for x in proto_values]

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\util\compat.py", line 65, in as_bytes
    (bytes_or_text,))

TypeError: Expected binary or unicode string, got Elemwise{clip,no_inplace}.0


During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:\Users\PC\Documents\Binary Option\ame-master\ame_starter\apps\main.py", line 382, in <module>
    app.run()

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\ame_starter\apps\evaluate.py", line 109, in run
    return self.run_single()

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\ame_starter\apps\evaluate.py", line 129, in run_single
    val_steps)

  File "C:\Users\PC\Documents\Binary Option\ame-master\ame_starter\apps\main.py", line 219, in train_model
    **network_params)

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\ame_starter\models\model_builder.py", line 284, in build_ame_model
    topmost_hidden_states=topmost_hidden_states)

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\ame_starter\models\model_builder.py", line 174, in _get_expert_outputs_optimized
    w1 = tf.Variable(he_normal()((num_experts, 1, num_units)))

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\ops\variables.py", line 213, in __init__
    constraint=constraint)

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\ops\variables.py", line 315, in _init_from_args
    initial_value, name="initial_value", dtype=dtype)

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\framework\ops.py", line 836, in convert_to_tensor
    as_ref=False)

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\framework\ops.py", line 926, in internal_convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\framework\constant_op.py", line 229, in _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\framework\constant_op.py", line 208, in constant
    value, dtype=dtype, shape=shape, verify_shape=verify_shape))

  File "C:\Users\PC\anaconda3\envs\AME\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 472, in make_tensor_proto
    "supported type." % (type(values), values))

TypeError: Failed to convert object of type <class 'theano.tensor.var.TensorVariable'> to Tensor. Contents: Elemwise{clip,no_inplace}.0. Consider casting elements to a supported type.

It was very difficult to build an environment as described in the setup.py because many incompatibilities.
The most similar setup I got to build and using to run your algorithm is:

Keras 2.0.2
Tensorflow 1.4.0
Pandas 0.22.0
Scikit-Learn 0.22
Numpy 1.19.5
Matplotlib 3.2.0
H5py 3.1.0

Thank you for sharing this great work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.