The use case is similar to AlphaGo, ie deterministic full information game with
a huge state space.
That reinforcement package looks interesting, looking into it. Love to
collaborate
Is Nemo suitable for reinforcement learning?
Alternatively readdlm("file.text",',') might be sufficient.
If it is in text format you can do readall("file.text") then call split (a few
times) on the string(s)
What is the scope of your project?
Good job!
PS: Quinn is such a beautiful name, just had to say that.
Also possible with the bits function:
julia> bits(1.0)
"0011"
Swedish national traveling a lot, currently in Kenya, will arrive in
Stockholm next saturday.
Welcoming new connections both for sporadic meetings and larger gatherings,
gmail and fb: marcus.appelros
Am applying with the Equations package along with a ongoing project to
develop a course and offer bounties to contributors in the developing world.
Sort of already have a mentor, the director of the information technology
institute at Vietnam national university Aiviet Nguyen who invited the
Real (100% score in the course) usage: http://artai.co/Plasma.html
OK, am interested in volunteering for Julia generally, have prepared a
message that fits better in the pinned post.
Do send word if you find some JuliaCon task that can be handled from a
distance, currently doing projects in Kenya so flying to Boston with a
weeks notice would be hard.
Am interested in being part of this venture. Every undertaking must be
motivated as optimally beneficient for the world as a whole, therefore the
following proposal might be acceptable to all:
Will do consulting on implementing Julian AI/physics/math in exchange for
donations to charitable
Sent an email to the JuliaCon adress about volunteering but have not
received a reply.
One function felt like one too many so now an efficient workflow comprised
solely of equations operating on equations is possible, am putting the
package and the new workflow to the test in this plasma physics course:
https://www.edx.org/course/plasma-physics-applications-epflx-plasmax
So far
This is the use case: abstract Component with a getargs(c::Component) that
returns an array with the fields of components, for concreteness lets say a
Der type with the fields x and dy. We want to be able to fetch the fields,
mutate the array (say replace all :a with :b^2) and then return a
...)
end
On Sat, 2015-05-02 at 12:15, Marcus Appelros marcus.appel...@gmail.com
wrote:
One very crude way it can be done:
function mutateimmutable(c::Component)
fields=getargs(c)
mutate!(fields)
if length(fields)==1
return typeof(c)(fields[1])
elseif length(fields)==2
mauro...@runbox.com wrote:
Maybe some pseudo code would make understanding your problem easier?
On Sat, 2015-05-02 at 10:34, Marcus Appelros marcus.appel...@gmail.com
wrote:
This is the use case: abstract Component with a getargs(c::Component) that
returns an array with the fields
C it is storing the identifier Array somewhere. We
can create a identical constructor with the difference that it accepts
a keyword for what to write in place of Array.
On 25/04/2015, Mauro mauro...@runbox.com wrote:
On Sat, 2015-04-25 at 19:55, Marcus Appelros marcus.appel...@gmail.com
wrote
Which is exactly what should be possible to avoid, if we anyhow have to
define all the functions what is the meaning in descending from
AbstractArray? The usefulness of having an abstract Component is to make
concrete instances that retain all the abstract functionality.
On Saturday, 25 April
Feels somehow sufficient to direct all functions to the data field. We can
have a macro like
@foranyfunction f(c::Cubes,a::AnyArgs)=f(c.data,a)
What you really want to be able to do is delegate everything to the .data
member, but there's no convenient way to do that
There are some existing
Consider the definitions:
type Cubes:AbstractArray
end
sum(cubes::Cubes)=sum(convert(Array,cubes).^3)
Is it possible to make this work? To create a custom array that has
indexing and all at inception? Looked up the definition of Array and it is
in the commented section on types implemented in
That gives the following error on 0.3 and 0.4:
julia type Cubes:AbstractArray;data;end
julia c=Cubes([1,2,3])
Error showing value of type Cubes:
ERROR: MethodError: `size` has no method matching size(::Cubes)
Closest candidates are:
size(::Any, ::Integer, ::Integer, ::Integer...)
in showarray
If size is defined the result is possibly stranger:
julia type Cubes{T,N} : AbstractArray{T,N}
data::Array{T,N}
end
julia Base.size(c::Cubes)=size(c.data)
size (generic function with 52 methods)
julia Cubes([1,2,3])
3-element Cubes{Int64,1}:
#undef
#undef
#undef
Identical
, 13:16:02 (UTC+2), Marcus Appelros escribió:
Which cases can not be handled by your native expander?
A lot of cases, IIRC it only does binomial expansion.
Currently
Equations should handle all standard cases
I checked it out tried a few things. It's very nice. The expansion worked
fine
Thank you for offering to help. I would like to phase out SymPy, but I
don't see it happening in the foreseeable future. I'm not sure how to
quantify the amount of capability in SymPy, but it is more or less
enormous. I think I could work 8 hours a day for a year and not duplicate
it in Julia.
Awesome! Do you have plans to eventually phase out the SymPy dependency? We
can collaborate on that!
On Monday, 20 April 2015 15:16:08 UTC+3, lapeyre@gmail.com wrote:
Here is SJulia
https://github.com/jlapeyre/SJulia
of it.
-viral
On 20-Apr-2015, at 11:34 pm, Marcus Appelros marcus.appel...@gmail.com
wrote:
Currently some modifications to REPL.jl are needed, there is a fork
made which does exactly that.
Am trying to test some of the examples in the SJulia readme, keep in
mind that this is on a old
Wrote it from the phone so not at the time, have used a similar solution
where at first the initial if was missing so different types with the same
arguments returned true. Just did a benchmark with 3 cases, one with the
literal function above (after fixing the missing ')'), one with n directly
Looking for testers and testwriters, especially for recent versions since
the internet connection here (not so central Kenya) does not allow frequent
updates.
Pkg.clone(git://github.com/jhlq/Equations.jl.git)
WIP:
* A generic matches(ex::Expression,pattern::Expression) so instead of
applying
Hi Kevin, thanks for the link! From the end of that thread:
Has anybody written pure Julia symbolic math for things like:
f = (x**y + y**z + z**x)**100
g = f.expand()
As far as I know there is no Julia package which supports such symbolic
expressions and manipulation.
Now there is!
Saw a
For a generic solution that works on all new types you can create a common
ancestor and define
function ==(a::Ancestor, b::Ancestor)
if isa(a,typeof(b)
na=names(a)
for n in 1:length(na)
if getfield(a,na[n])!=getfield(b,na[n])
return false
end
What is the output of methods(head)?
The code you posted works fine here... Are you using some other package
also that supplies another head? Which versions do you have?
RFC: https://github.com/jhlq/Equations.jl
git://github.com/jhlq/Equations.jl.git
How about Equations? It captures the main theme so that people scrolling
through the list of packages will instantly gather its purpose. Any other
suggestions or objections?
On Sunday, 12 April 2015 14:02:02 UTC+3, Marcus Appelros wrote:
Am working on code to derive mathematical relations
Am working on code to derive mathematical relations, its initial purpose
was in the field of non-commutative geometry however it appears to have
become generally useful, feels like a good idea if we make the base self
contained and release it as a separate package upon which more specialized
for a function, but
others are available for a user to define.
Ivar
kl. 11:33:18 UTC+2 fredag 1. august 2014 skrev Marcus Appelros følgende:
Say I want an operator o so that any expression like:
aob
is evaluated as:
o(a,b)
where o(a,b) can be set to any arbitrary function:
o(a,b)=f(a,b
be
some subtle differences.
Ivar
kl. 11:58:07 UTC+2 fredag 1. august 2014 skrev Marcus Appelros følgende:
Say I want to change the parser so that a arbitrary character is parsed
as an operator, how can this be done?
Den fredagen den 1:e augusti 2014 kl. 11:49:50 UTC+2 skrev Ivar Nesje
Perfect, thank you!
Den fredagen den 1:e augusti 2014 kl. 13:28:37 UTC+2 skrev Johan Sigfrids:
I think the parsing is defined here:
https://github.com/JuliaLang/julia/blob/master/src/julia-parser.scm
On Friday, August 1, 2014 2:24:37 PM UTC+3, Marcus Appelros wrote:
Adding a rule
Modified NeHe tut 2 to draw circles and now trying to save them to a file.
Have tried multiple combinations of the code below and also asked on IRC.
pix=Array(GLubyte,width*height*3)#Ptr{GLubyte}
glReadPixels(0,0,width,height,GL_RGB,GL_UNSIGNED_BYTE,pix)
Result: ERROR: error compiling
Trying to setup a server that makes files in a folder available for
download.
Html files can be loaded by the server and accessed (+javascript
interaction) via localhost:8000, the html file displaying a image works
when viewed directly in firefox, the image is in the same folder (named
html)
(but am not sure) that HttpServer always returned HTML as the MIME type.
-- John
On Feb 10, 2014, at 11:06 AM, Marcus Appelros
marcus@gmail.comjavascript:
wrote:
Trying to setup a server that makes files in a folder available for
download.
Html files can be loaded
42 matches
Mail list logo