Next refresh should show more results. ( run in 5.109 )
view release on metacpan or search on metacpan
lib/AI/ANN.pm view on Meta::CPAN
use AI::ANN::Neuron;
use Storable qw(dclone);
has 'input_count' => (is => 'ro', isa => 'Int', required => 1);
has 'outputneurons' => (is => 'ro', isa => 'ArrayRef[Int]', required => 1);
has 'network' => (is => 'ro', isa => 'ArrayRef[HashRef]', required => 1);
# network is an arrayref of hashrefs. Each hashref is:
# object => AI::ANN::Neuron
# and has several other elements
has 'inputs' => (is => 'ro', isa => 'ArrayRef[Int]');
has 'rawpotentials' => (is => 'ro', isa => 'ArrayRef[Int]');
has 'minvalue' => (is => 'rw', isa => 'Int', default => 0);
has 'maxvalue' => (is => 'rw', isa => 'Int', default => 1);
has 'afunc' => (is => 'rw', isa => 'CodeRef', default => sub {sub {shift}});
has 'dafunc' => (is => 'rw', isa => 'CodeRef', default => sub {sub {1}});
has 'backprop_eta' => (is => 'rw', isa => 'Num', default => 0.1);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AI/MXNet/Gluon/ModelZoo/Vision/DenseNet.pm view on Meta::CPAN
classes : int, default 1000
Number of classification classes.
=cut
has [qw/num_init_features
growth_rate/] => (is => 'ro', isa => 'Int', required => 1);
has 'block_config' => (is => 'ro', isa => 'ArrayRef[Int]', required => 1);
has 'bn_size' => (is => 'ro', isa => 'Int', default => 4);
has 'dropout' => (is => 'ro', isa => 'Num', default => 0);
has 'classes' => (is => 'ro', isa => 'Int', default => 1000);
method python_constructor_arguments(){ [qw/num_init_features growth_rate block_config bn_size dropout classes/] }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AI/MXNet/Executor/Group.pm view on Meta::CPAN
Can be specified globally (str) or for each argument (array ref, hash ref).
state_names: Maybe[ArrayRef[Str]]
=cut
has 'symbol' => (is => 'ro', isa => 'AI::MXNet::Symbol', required => 1);
has 'contexts' => (is => 'ro', isa => 'ArrayRef[AI::MXNet::Context]', required => 1);
has 'workload' => (is => 'ro', isa => 'ArrayRef[Num]', default => sub { [] });
has 'data_shapes' => (is => 'rw', isa => 'ArrayRef[NameShape|AI::MXNet::DataDesc]', required => 1);
has 'label_shapes' => (is => 'rw', isa => 'Maybe[ArrayRef[NameShape|AI::MXNet::DataDesc]]');
has 'param_names' => (is => 'ro', isa => 'ArrayRef[Str]', required => 1);
has 'for_training' => (is => 'ro', isa => 'Bool', required => 1);
has 'inputs_need_grad' => (is => 'ro', isa => 'Bool', default => 0);
has 'shared_group' => (is => 'ro', isa => 'Maybe[AI::MXNet::DataParallelExecutorGroup]');
has 'logger' => (is => 'ro', default => sub { AI::MXNet::Logging->get_logger });
has 'fixed_param_names' => (is => 'rw', isa => 'Maybe[ArrayRef[Str]]');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AI/NaiveBayes.pm view on Meta::CPAN
use List::Util qw(max);
with Storage(format => 'Storable', io => 'File');
has model => (is => 'ro', isa => 'HashRef[HashRef]', required => 1);
sub train {
my $self = shift;
my $learner = AI::NaiveBayes::Learner->new();
for my $example ( @_ ){
view all matches for this distribution
view release on metacpan or search on metacpan
lib/API/MailboxOrg/Types.pm view on Meta::CPAN
use Moo;
use API::MailboxOrg::Types qw(Boolean HashRefRestricted);
has true_or_false => ( is => 'ro', isa => Boolean, coerce => 1 );
has map => ( is => 'ro', isa => HashRefRestricted[qw(a b)] ); # allow only keys a and b
1;
}
my $obj = TestClass->new(
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alice/InfoWindow.pm view on Meta::CPAN
use Text::MicroTemplate qw/encoded_string/;
extends 'Alice::Window';
has '+title' => (required => 0, default => 'info');
has 'topic' => (is => 'ro', isa => 'HashRef', default => sub {{string => ''}});
has '+network' => (is => 'ro', default => "");
has '+type' => (is => 'ro', default => "info");
#
# DO NOT override the 'id' property, it is built in App/Alice.pm
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/BWIPP.pm view on Meta::CPAN
default => sub {
return IO::File->new(dist_file('Alien-BWIPP', 'barcode.ps'), 'r');
},
);
has '_chunks' => (is => 'ro', isa => 'HashRef', lazy_build => 1,);
has '_encoders' => (
is => 'ro',
isa => 'ArrayRef',
lazy_build => 1,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AlignDB/Codon.pm view on Meta::CPAN
has 'table_name' => ( is => 'ro', isa => 'Str', );
has 'table_content' => ( is => 'ro', isa => 'Str', );
has 'table_starts' => ( is => 'ro', isa => 'Str', );
# codons
has 'codons' => ( is => 'ro', isa => 'ArrayRef', );
has 'codon_idx' => ( is => 'ro', isa => 'HashRef', );
has 'codon2aa' => ( is => 'ro', isa => 'HashRef', );
# lookup hash for the number of synonymous changes per codon
has 'syn_sites' => ( is => 'ro', isa => 'HashRef', );
# lookup hash of all pairwise combinations of codons differing by 1
# 1 = synonymous, 0 = non-synonymous, -1 = stop
has 'syn_changes' => ( is => 'ro', isa => 'HashRef', );
# One <=> Three
has 'one2three' => ( is => 'ro', isa => 'HashRef', );
has 'three2one' => ( is => 'ro', isa => 'HashRef', );
sub BUILD {
my $self = shift;
$self->_make_codons;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AlignDB/DeltaG.pm view on Meta::CPAN
our $VERSION = '1.1.0';
has 'temperature' => ( is => 'rw', isa => 'Num', default => sub {37.0}, );
has 'salt_conc' => ( is => 'rw', isa => 'Num', default => sub {1.0}, );
has 'deltaH' => ( is => 'ro', isa => 'HashRef', );
has 'deltaS' => ( is => 'ro', isa => 'HashRef', );
has 'deltaG' => ( is => 'ro', isa => 'HashRef', );
sub BUILD {
my $self = shift;
# Load thermodynamic data
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AlignDB/Stopwatch.pm view on Meta::CPAN
use YAML::Syck;
our $VERSION = '1.1.0';
has program_name => ( is => 'ro', isa => 'Str' );
has program_argv => ( is => 'ro', isa => 'ArrayRef', default => sub { [] } );
has program_conf => ( is => 'ro', isa => 'Object' );
has 'start_time' => ( is => 'rw', isa => 'Value' );
has 'div_char' => ( is => 'rw', isa => 'Str', default => sub {"="}, );
has 'div_length' => ( is => 'rw', isa => 'Int', default => sub {30}, );
has 'min_div_length' => ( is => 'rw', isa => 'Int', default => sub {5} );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AlignDB/ToXLSX.pm view on Meta::CPAN
has dbh => ( is => 'ro', isa => 'Object' );
# outfiles
has outfile => ( is => 'ro', isa => 'Str' ); # output file, autogenerable
has workbook => ( is => 'ro', isa => 'Object' ); # excel workbook object
has format => ( is => 'ro', isa => 'HashRef' ); # excel formats
# worksheet cursor
has row => ( is => 'rw', isa => 'Num', default => sub {0}, );
has column => ( is => 'rw', isa => 'Num', default => sub {0}, );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amazon/MWS/XML/Product.pm view on Meta::CPAN
isa => sub { _check_length($_[0], 0, 40) }
);
has manufacturer => (is => 'ro',
isa => sub { _check_length($_[0], 0, 50) });
has search_terms => (is => 'ro', isa => ArrayRef);
has features => (is => 'ro', isa => ArrayRef);
sub _check_length {
my ($value, $min, $max) = @_;
if (defined $value) {
die "Max characters is $max" if length($value) > $max;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/BitTorrent.pm view on Meta::CPAN
}
elsif ($m eq 'c') { $s->files->[$i]->{timeout} = () }
else {return}
return $s->files->[$i]->{mode} = $m;
}
has piece_cache => (is => 'ro', isa => HashRef, default => sub { {} });
sub _cache_path {
my $s = shift;
File::Spec->catfile($s->basedir,
(scalar @{$s->files} == 1 ? () : $s->name),
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Discord.pm view on Meta::CPAN
has base_uri => ( is => 'rw', isa => Str, default => 'https://discordapp.com/api' );
has socket_options => ( is => 'rw', isa => HashRef, default => sub { { max_payload_size => 1024 * 1024 } } );
has verbose => ( is => 'rw', isa => Num, default => 0 );
has user_agent => ( is => 'rw', isa => Str, default => sub { 'Perl-AnyEventDiscord/' . shift->VERSION } );
has guilds => ( is => 'ro', isa => HashRef, default => sub { {} } );
has channels => ( is => 'ro', isa => HashRef, default => sub { {} } );
has users => ( is => 'ro', isa => HashRef, default => sub { {} } );
# UserAgent
has _ua => ( is => 'rw', default => sub { LWP::UserAgent->new() } );
# Caller-defined event handlers
has _events => ( is => 'ro', isa => HashRef, default => sub { {} } );
# Internal-defined event handlers
has _internal_events => ( is => 'ro', isa => HashRef, builder => '_build_internal_events' );
# WebSocket
has _socket => ( is => 'rw' );
# Heartbeat timer
has _heartbeat => ( is => 'rw' );
# Last Sequence
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Filesys/Notify.pm view on Meta::CPAN
use Try::Tiny;
our $VERSION = '1.23';
my $AEFN = 'AnyEvent::Filesys::Notify';
has dirs => ( is => 'ro', isa => 'ArrayRef[Str]', required => 1 );
has cb => ( is => 'rw', isa => 'CodeRef', required => 1 );
has interval => ( is => 'ro', isa => 'Num', default => 2 );
has no_external => ( is => 'ro', isa => 'Bool', default => 0 );
has backend => ( is => 'ro', isa => 'Str', default => '' );
has filter => ( is => 'rw', isa => 'RegexpRef|CodeRef' );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/KVStore.pm view on Meta::CPAN
This is the configuratoin to connect to the driver.
=cut
has config => (is => 'ro', isa => HashRef, required => 1);
=head1 SUBROUTINES/METHODS
=head2 new($args or %args)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Monitor.pm view on Meta::CPAN
has on_softfail => ( is => "ro", isa => "CodeRef" );
has on_hardfail => ( is => "ro", isa => "CodeRef" );
has on_resume => ( is => "ro", isa => "CodeRef" );
has on_fatal => ( is => "ro", isa => "CodeRef" );
has status => ( is => "rw", isa => "Str", default => sub {''} );
has timer => ( is => 'ro', isa => 'HashRef', default => sub { {} } );
has soft_timeout => ( is => 'rw', isa => 'Num', default => sub { 10 } );
has hard_timeout => ( is => 'rw', isa => 'Num', default => sub { 45 } );
has fail_detected => ( is => 'rw', isa => 'Num' );
view all matches for this distribution
view release on metacpan or search on metacpan
eg/Gauge/Role.pm view on Meta::CPAN
default => sub {
Parallel::ForkManager->new(shift->parallel);
},
);
has parallel => (is => 'ro', isa => 'Int', default => 4);
has queue => (is => 'ro', isa => 'ArrayRef[Str]', required => 1);
has split => (
is => 'rw',
isa => 'ArrayRef[ArrayRef[Str]]',
lazy => 1,
default => sub {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/PgRecvlogical.pm view on Meta::CPAN
has reconnect_delay => (is => 'ro', isa => Int, default => 5);
has reconnect_limit => (is => 'ro', isa => Int, predicate => 1);
has _reconnect_counter => (is => 'rw', isa => Int, default => 0);
has heartbeat => (is => 'ro', isa => Int, default => 10);
has plugin => (is => 'ro', isa => Str, default => 'test_decoding');
has options => (is => 'ro', isa => HashRef, default => sub { {} });
has startpos => (is => 'rwp', isa => $LSN, default => 0, coerce => 1);
has received_lsn => (is => 'rwp', isa => $LSN, default => 0, clearer => 1, init_arg => undef, lazy => 1);
has flushed_lsn => (is => 'rwp', isa => $LSN, default => 0, clearer => 1, init_arg => undef, lazy => 1);
has on_message => (is => 'ro', isa => CodeRef, required => 1);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/RabbitMQ/PubSub/Consumer.pm view on Meta::CPAN
has channel => (
is => 'ro', isa => 'AnyEvent::RabbitMQ::Channel', required => 1
);
has exchange => (
is => 'ro', isa => 'HashRef', required => 1
);
has queue => (
is => 'ro', isa => 'HashRef', required => 1
);
has routing_key => (
is => 'ro', isa => 'Str', default => '#'
);
has prefetch_count => (
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Subprocess/Done/Delegate/State.pm view on Meta::CPAN
# ABSTRACT: thread state through the job/run/done lifecycle
use Moose;
with 'AnyEvent::Subprocess::Done::Delegate';
has 'state' => ( is => 'ro', isa => 'HashRef', required => 1 );
__PACKAGE__->meta->make_immutable;
1;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Alice/InfoWindow.pm view on Meta::CPAN
extends 'App::Alice::Window';
has '+is_channel' => (lazy => 0, default => 0);
has '+title' => (required => 0, default => 'info');
has '+session' => (default => "");
has 'topic' => (is => 'ro', isa => 'HashRef', default => sub {{string => ''}});
has '+type' => (lazy => 0, default => 'info');
has '+_irc' => (required => 0, isa => 'Any');
sub irc {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ArchiveDevelCover.pm view on Meta::CPAN
has 'archive_db' => (is=>'ro',isa=>'Path::Class::File',lazy_build=>1,traits=> ['NoGetopt']);
sub _build_archive_db {
my $self = shift;
return $self->to->file('archive_db');
}
has 'previous_stats' => (is=>'ro',isa=>'ArrayRef',lazy_build=>1,traits=>['NoGetopt']);
sub _build_previous_stats {
my $self = shift;
if (-e $self->archive_db) {
my $dbr = $self->archive_db->openr;
my @data = <$dbr>; # probably better to just get last line...
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/AutoCRUD/Context.pm view on Meta::CPAN
has 'app' => (is => 'ro', isa => 'App::AutoCRUD', required => 1,
handles => [qw/config dir/]);
has 'req' => (is => 'ro', isa => 'Plack::Request', required => 1,
handles => [qw/logger/]);
has 'req_data' => (is => 'ro', isa => 'HashRef',
builder => '_req_data', lazy => 1, init_arg => undef);
has 'base' => (is => 'ro', isa => 'Str',
builder => '_base', lazy => 1, init_arg => undef);
has 'path' => (is => 'rw', isa => 'Str',
builder => '_path', lazy => 1);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/CSE.pm view on Meta::CPAN
has 'interactive' => ( is => 'ro' , isa => 'Bool' , lazy_build => 1 );
has 'colorizer' => ( is => 'ro' , isa => 'App::CSE::Colorizer' , lazy_build => 1);
# GetOpt::Long options specs.
has 'options_specs' => ( is => 'ro' , isa => 'ArrayRef[Str]', lazy_build => 1);
# The options as slurped by getopts long
has 'options' => ( is => 'ro' , isa => 'HashRef[Str]', lazy_build => 1);
# The arguments after any option
has 'args' => ( is => 'ro' , isa => 'ArrayRef[Str]', lazy_build => 1);
has 'index_dir' => ( is => 'ro' , isa => 'Path::Class::Dir', lazy_build => 1);
has 'index_mtime' => ( is => 'ro' , isa => 'DateTime' , lazy_build => 1);
has 'index_dirty_file' => ( is => 'ro' , isa => 'Path::Class::File', lazy_build => 1);
has 'dirty_files' => ( is => 'ro', isa => 'HashRef[Str]', lazy_build => 1);
has 'index_meta_file' => ( is => 'ro' , isa => 'Path::Class::File' , lazy_build => 1);
has 'index_meta' => ( is => 'ro', isa => 'HashRef[Str]', lazy_build => 1);
# File utilities
has 'xml_parser' => ( is => 'ro' , isa => 'XML::LibXML', lazy_build => 1);
# Environment slurping
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/DDNS/Namecheap.pm view on Meta::CPAN
$ua->agent("");
use Mozilla::CA;
has domain => ( is => 'ro', isa => 'Str', required => 1 );
has password => ( is => 'ro', isa => 'Str', required => 1 );
has hosts => ( is => 'ro', isa => 'ArrayRef', required => 1 );
has ip => ( is => 'ro', isa => 'Str', required => 0 );
sub update {
my $self = shift;
foreach ( @{ $self->{hosts} } ) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/EC2Cssh.pm view on Meta::CPAN
use AnyEvent;
use Log::Any qw/$log/;
# Config stuff.
has 'config' => ( is => 'ro', isa => 'HashRef', lazy_build => 1);
has 'config_file' => ( is => 'ro' , isa => 'Maybe[Str]');
has 'config_files' => ( is => 'ro' , isa => 'ArrayRef[Str]' , lazy_build => 1);
# Run options stuff
has 'set' => ( is => 'ro' , isa => 'Str', required => 1 );
has 'demux_command' => ( is => 'ro', isa => 'Maybe[Str]', required => 0, predicate => 'has_demux_command' );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/JESP.pm view on Meta::CPAN
};
});
has 'dbix_simple' => ( is => 'ro', isa => 'DBIx::Simple', lazy_build => 1);
has 'patches_table_name' => ( is => 'ro', isa => 'Str' , lazy_build => 1);
has 'meta_patches' => ( is => 'ro', isa => 'ArrayRef[HashRef]',
lazy_build => 1 );
has 'plan' => ( is => 'ro', isa => 'App::JESP::Plan', lazy_build => 1);
has 'driver' => ( is => 'ro', isa => 'App::JESP::Driver', lazy_build => 1 );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/JIRAPrint.pm view on Meta::CPAN
}
};
# Config stuff.
has 'config' => ( is => 'ro', isa => 'HashRef', lazy_build => 1);
has 'config_files' => ( is => 'ro' , isa => 'ArrayRef[Str]' , lazy_build => 1);
has 'shared_directory' => ( is => 'ro', isa => 'Str', lazy_build => 1);
has 'template_file' => ( is => 'ro', isa => 'Str', lazy_build => 1);
view all matches for this distribution