Profile
- Name
- nm_s_ws_x10_wa infinite
- ID
- 108158
- Shared with
- Public
- Parent
- m_s_ws_x10_wa infinite
- Children
- Created on
- January 05, 2023 at 19:21 PM UTC
- Updated on
- January 05, 2023 at 19:21 PM UTC
- Description
after first design, bonus protection. Neural mutate
Best for
Code
--m, s, ws, m, s, ws, m, wa
--infinite
recentbest.Save( )
recipe.ReportStatus()
function Soft()
for i = 1, 10 do
print("Loop "..i)
print(i..") Mutate 1 iteration")
structure.NeuralNetMutateSidechainsAll(1)
recentbest.Restore ()
print("Score: "..current.GetEnergyScore())
print(i..") Shake 1 iteration")
structure.ShakeSidechainsAll(1)
recentbest.Restore ()
print("Score: "..current.GetEnergyScore())
print(i..") Wiggle sidechains 1 iteration")
structure.WiggleAll(1,false,true) -- ws
recentbest.Restore ()
BestScore=current.GetEnergyScore()
print("Score: "..BestScore)
recipe.ReportStatus()
BestFilter=filter.GetBonusTotal()
print("Total Bonus =" ..BestFilter) --Total bonus score of the filters
print("#################")
save.Quicksave(3)
end
end
function Hard()
save.Quickload(3)
print("Wiggle sidechains 25 iterations")
structure.WiggleAll(25,false,true) -- ws
recentbest.Restore ()
print("Score: "..current.GetEnergyScore())
recentbest.Save( ) -- from here it's disturbing
print("Wiggle all 1 iteration")
structure.WiggleAll (1)
recentbest.Restore ()
print("Score: "..current.GetEnergyScore())
print("Wiggle all 1 iteration")
structure.WiggleAll (1)
recentbest.Restore ()
print("Score: "..current.GetEnergyScore())
print("Wiggle all 1 iteration")
structure.WiggleAll (1)
recentbest.Restore ()
SaveBest()
print("Wiggle all 25 iteration")
structure.WiggleAll (25)
recentbest.Restore ()
print("Restoring recent best")
SaveBest()
recipe.ReportStatus()
print("End of recipe. Thanks for reading ;)")
end
function SaveBest()
CurrentBonus=filter.GetBonusTotal()
print("Score: "..current.GetEnergyScore())
if CurrentBonus < BestFilter then save.Quickload(3) end
save.Quicksave(3)
end
function MAIN()
for i=4,100 do
Soft()
save.Quicksave(i)
Hard()
end
end
function DumpErr()
for i=4,100 do
save.Quickload(i)
end
save.Quickload(3)
end
xpcall(MAIN, DumpErr)