Giter VIP home page Giter VIP logo

aima-julia's People

Contributors

femtotrader avatar mikhail-j avatar norvig avatar utkarsh23 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aima-julia's Issues

Update 'aima-data' submodule

I've noticed that the test run-text-test.jl fails because it cannot locate gutenberg.txt inside the submodule aima-data. This is because the aima-data submodule of this repository does not point to the latest commit of aima-data repo. We need to update that. I think only those who have complete access to this repository can update it.
Please look into this @norvig @mikhail-j

Start contribution

I want to start contributing to this repository so please guide me how to do so.

alphabeta_full_search_max_value

I have a couple questions about the alphabeta_full_search_max_value function in games.jl.

  1. Suppose that the state is terminal, and the utility function returns a value that is < beta but > alpha. Shouldn't that still change the value of alpha?
  2. My understanding is that in Julia numeric arguments to a function are passed by value. Since this function doesn't return the new value of alpha, I don't see how that value changes over the course of the search.
function alphabeta_full_search_max_value(game::T, player::String, state::String, alpha::Number, beta::Number) where {T <: AbstractGame}
	if (terminal_test(game, state))
		return utility(game, state, player)
	end
	local v::Float64 = -Inf64;
	for action in actions(game, state)
		v = max(v, alphabeta_full_search_min_value(game, player, result(game, state, action), alpha, beta));
        if (v >= beta)
            return v;
        end
        ### ! changes external variable alpha  ?
        alpha = max(alpha, v);
	end
	return v;
end

Make this repository more Julia-esque

Hello,

most Julia repositories

  • follow a naming convention https://github.com/aimacode/Aima.jl should be better
  • should (at least) be easily installable using
julia> Pkg.clone("https://github.com/aimacode/Aima.jl")
  • have code in /src directory
  • have unit tests with testset
  • should work with Julia 0.6 (and maybe also with nightly) (see #14 )

Kind regards

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.