<commit_before>#Piranhas [Torch7]

1. Download the Piranhas toolbox for torch. Read the [Tutorial](https://github.com/ArturoDeza/Piranhas/tree/master/Tutorial) to learn about these parameters.

2. Define your Computer + Human perception parameters.

3. Create a Peripheral Architecture

4. Pool your dense feature maps.
	Coming soon!

### Tips and tricks:
Save your peripheral architectures in a folder!<commit_msg>Added torch guidelines<commit_after>#Piranhas [Torch7]

1. Download the Piranhas toolbox for torch. Read the [Tutorial](https://github.com/ArturoDeza/Piranhas/tree/master/Tutorial) to learn about these parameters.

2. Define your Computer + Human perception parameters.
	```lua
	function param:param_init_all(o)
	o = o or {}
	setmetatable(o, self)
	self.__index = self
	self.pixel_res_width = 800 -- in pixels
	self.pixel_res_height = 800 -- in pixels
	self.mon_width = 37.5 -- in cm
	self.mon_height = 30 -- in cm
	self.view_dist = 64 -- in cm
	self.gamma_c = 1 -- gabor parameter
	self.psi_c = 0 -- gabor parameter
	self.cm_per_pixel = (self.mon_width)/(self.pixel_res_width)
	self.deg_per_pixel = 2*math.deg(math.atan(self.cm_per_pixel/2/self.view_dist))
	-- Gabor Filter parameters
	self.orien = 8
	self.wave_num = 3
	self.freq_zero = 1.0
	self.bandwidth = 1.0
	-- Field of View Model Parameters
	self.visual_field_radius_in_deg = 10.0
	self.fovea = 1.0
	self.scale = 0.5
	self.e0_in_deg = 0.25
	self.visual = 1
	self.visual_mask = 1
	return o
	end
	```

3. Create a Peripheral Architecture
	```lua
	-- Create_Pianhas.lua script:

	-- Load the piranhas module
	require 'piranhas'

	param = param:param_init_all(nil)

	scale = param.scale
	fovea = param.fovea
	e0_in_deg = param.e0_in_deg
	visual_field_radius_in_deg = param.visual_field_radius_in_deg
	deg_per_pixel = param.deg_per_pixel

	-- Get Peripheral Architecture Parameters:

	N_e, N_theta  = get_pooling_parameters(scale,e0_in_deg,visual_field_radius_in_deg,deg_per_pixel)

	e_max = visual_field_radius_in_deg
	visual_field_width = math.floor(0.5 + 2*(visual_field_radius_in_deg/deg_per_pixel))

	regions = create_regions_vector_smooth(e0_in_deg,e_max,visual_field_width,deg_per_pixel,N_theta,N_e)
	```

4. Pool your dense feature maps.
	Coming soon!

### Tips and tricks:
Save your peripheral architectures in a folder!
{'fraction_non_alphanumeric': 0.09704090513489991, 'fraction_numerical': 0.023063533507397736, 'mean_word_length': 4.473809523809524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1150275', 'n_tokens_mistral': 901, 'n_tokens_neox': 831, 'n_words': 203}