sakuya/node_modules/neataptic/docs/articles/playground/index.html
2022-04-10 00:37:53 +08:00

290 lines
9.6 KiB
HTML

<html>
<head>
<title>Neataptic.js - Playground</title>
<!-- Meta data -->
<meta charset="UTF-8">
<meta name="description" content="Play around with neural-networks built with Neataptic">
<meta name="keywords" content="mutate, neural-network, machine-learning, playground, Neataptic">
<meta name="author" content="Thomas Wagenaar">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../custom.css">
<!-- Favicon -->
<link rel="shortcut icon" href="http://i.imgur.com/rPZtAOc.png">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<!-- Google Analytics -->
<script async>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51480408-2', 'auto');
ga('send', 'pageview');
</script>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../.."><p class="brand">Neataptic</p></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="current active"><a href="../..">Home</a></li>
<li class="current"><a href="../../docs/">Docs</a></li>
<li class="current"><a href="../">Articles</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/wagenaartje/neataptic" target="blank"><i class="fa fa-github fa-1x"></i><b> GITHUB</b></a></li>
</ul>
</div>
</div>
</nav>
<div class="container" style="margin-top: 60px">
<div class="row">
<!-- Sidebar -->
<div class="col-sm-2 col-md-2 col-lg-2">
<ul id="sidebar" class="nav">
<li class="">
<a href="../neuroevolution/">Neuroevolution</a>
</li>
<li class="">
<a href="../targetseeking/">Target-seeking AI</a>
</li>
<li class="">
<a href="../agario/">Agar.io AI</a>
</li>
<li class="">
<a href="../classifycolors/">Classify colors</a>
</li>
<li class="active">
<a href="./">Playground</a>
</li>
</ul>
</div>
<!-- Content -->
<div class="col-sm-10 col-md-10 col-lg-10 content">
<h1 style="margin-bottom: 0px;">Playground</h1>
<p><a style="text-decoration: none" href="https://github.com/wagenaartje/neataptic/edit/master/mkdocs/templates/articles\playground.md"><i class="fa fa-github fa-1x"></i> Edit on Github</a></p>
<hr>
<div class="col-md-4">
<div class="btn-group btn-group-justified">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.SUB_NODE)">&zwnj;<span class="glyphicon glyphicon-minus"></button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Node</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.ADD_NODE)">&zwnj;<span class="glyphicon glyphicon-plus"></button>
</div>
</div>
<div class="btn-group btn-group-justified">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.SUB_CONN)">&zwnj;<span class="glyphicon glyphicon-minus"></button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Conn</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.ADD_CONN)">&zwnj;<span class="glyphicon glyphicon-plus"></button>
</div>
</div>
<div class="btn-group btn-group-justified">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.SUB_GATE)">&zwnj;<span class="glyphicon glyphicon-minus"></button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Gate</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.ADD_GATE)">&zwnj;<span class="glyphicon glyphicon-plus"></button>
</div>
</div>
<div class="btn-group btn-group-justified">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.SUB_SELF_CONN)">&zwnj;<span class="glyphicon glyphicon-minus"></button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Self-conn</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.ADD_SELF_CONN)">&zwnj;<span class="glyphicon glyphicon-plus"></button>
</div>
</div>
<div class="btn-group btn-group-justified">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.SUB_BACK_CONN)">&zwnj;<span class="glyphicon glyphicon-minus"></button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Back-conn</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="mutate(methods.mutation.ADD_BACK_CONN)">&zwnj;<span class="glyphicon glyphicon-plus"></button>
</div>
</div>
<div class="input-group" style="margin-bottom: 15px;">
<span class="input-group-addon">input1</span>
<input type="number" class="form-control input1" value=0>
</div>
<div class="input-group" style="margin-bottom: 15px;">
<span class="input-group-addon">input2</span>
<input type="number" class="form-control input2" value=1>
</div>
<div class="btn-group btn-group-justified">
<div class="btn-group" role="group">
<button class="btn btn-warning" onclick="activate()">Activate</button>
</div>
</div>
<pre>Output: <span class="output"></span></pre>
</div>
<div class="col-md-8">
<div class="panel panel-default">
<svg class="draw" width="100%" height="60%"/>
</div>
</div>
</div>
</div>
</div>
<!-- Javascript (only for blogs) -->
<script src="../../js/articles/playground/import.js"></script>
<script>
$("table").each(function(){
$(this).addClass('table table-striped');
});
$(".current").each(function(){
var text = $(this).text().toLowerCase();
if(window.location.pathname.indexOf(text) >= 0){
$('.active').removeClass('active');
$(this).addClass('active');
}
})
</script>
</body>